mmpretrain/test.py

6 lines
175 B
Python
Raw Normal View History

2023-07-02 20:44:13 +08:00
from mmpretrain import inference_model
2023-07-03 12:43:55 +08:00
result = inference_model('instructblip-vicuna7b_3rdparty-zeroshot_caption',
'demo/cat-dog.png')
2023-07-02 20:44:13 +08:00
print(result)