Closed Bowei-Jiang closed 1 month ago
hi @Bowei-Jiang , you can specify your weight through the weight_path parameter : ops.video_text_embedding.clip4clip(model_name='clip_vit_b32', modality='video', weight_path="your weights"
, device='cuda:1')
hi @Bowei-Jiang , you can specify your weight through the weight_path parameter : ops.video_text_embedding.clip4clip(model_name='clip_vit_b32', modality='video',
weight_path="your weights"
, device='cuda:1')
OK, thanks a lot
Is there an existing issue for this?
Is your feature request related to a problem? Please describe.
I download clip model on machine, and I want to load local clip model to run the function "ops.video_text_embedding.clip4clip()".
For example, my codes are: "ops.video_text_embedding.clip4clip(model_name='/root/data/clip_model/clip-vit-large-patch14', modality='video', device='cuda:1')", however, this error occurs:
ValueError: Invalid model name '/root/data/clip_model/clip-vit-large-patch14',
Could anyone tell me how can I load the local clip model when running ops.video_text_embedding.clip4clip() ?
Describe the solution you'd like.
No response
Describe an alternate solution.
No response
Anything else? (Additional Context)
No response