from modelscope.pipelines.multi_modal.gridvlp_pipeline import GridVlpClassificationPipeline
pipeline = GridVlpClassificationPipeline('rgtjf1/multi-modal_gridvlp_classification_chinese-base-ecom-cate-large') inputs = pipeline.preprocess({'text': '女装快干弹力轻型短裤448575','image_url':'https://yejiabo-public.oss-cn-zhangjiakou.aliyuncs.com/alinlp/clothes.png'}) outputs = pipeline.forward(inputs) print(outputs)
2023-04-06 16:43:08,542 - modelscope - INFO - load checkpoint from modelscope rgtjf1/multi-modal_gridvlp_classification_chinese-base-ecom-cate-large Traceback (most recent call last): File "", line 1, in File "/root/anaconda3/lib/python3.10/site-packages/modelscope/pipelines/multi_modal/gridvlp_pipeline.py", line 182, in init super().init(model_name_or_path, **kwargs) File "/root/anaconda3/lib/python3.10/site-packages/modelscope/pipelines/multi_modal/gridvlp_pipeline.py", line 86, in init local_model_dir = snapshot_download( File "/root/anaconda3/lib/python3.10/site-packages/modelscope/hub/snapshot_download.py", line 94, in snapshot_download revision = _api.get_valid_revision( File "/root/anaconda3/lib/python3.10/site-packages/modelscope/hub/api.py", line 446, in get_valid_revision raise NoValidRevisionError( modelscope.hub.errors.NoValidRevisionError: The model: rgtjf1/multi-modal_gridvlp_classification_chinese-base-ecom-cate-large has no valid revision!