You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
loader = AutoLoader(
task_name="txt_img_matching",
model_name="AltCLIP-XLMR-L", # Load the checkpoints from Modelhub(model.baai.ac.cn/models)
model_dir=model_dir,
)
Bug:
File "/home/notebook/code/personal/test/recognize_anything_model_plus/model_test.py", line 21, in
load_altclip()
File "/home/notebook/code/personal/test/recognize_anything_model_plus/model_test.py", line 6, in load_altclip
loader = AutoLoader(
File "/opt/conda/envs/ram/lib/python3.9/site-packages/flagai/auto_model/auto_loader.py", line 333, in init
self.model = getattr(LazyImport(self.model_name[0]),
File "/opt/conda/envs/ram/lib/python3.9/site-packages/flagai/model/mm/AltCLIP.py", line 446, in from_pretrain
super().download(download_path, model_name, only_download_config=only_download_config)
File "/opt/conda/envs/ram/lib/python3.9/site-packages/flagai/model/base_model.py", line 263, in download
if model_id and model_id != "null":
UnboundLocalError: local variable 'model_id' referenced before assignment
The text was updated successfully, but these errors were encountered:
Description
Bug:
File "/home/notebook/code/personal/test/recognize_anything_model_plus/model_test.py", line 21, in
load_altclip()
File "/home/notebook/code/personal/test/recognize_anything_model_plus/model_test.py", line 6, in load_altclip
loader = AutoLoader(
File "/opt/conda/envs/ram/lib/python3.9/site-packages/flagai/auto_model/auto_loader.py", line 333, in init
self.model = getattr(LazyImport(self.model_name[0]),
File "/opt/conda/envs/ram/lib/python3.9/site-packages/flagai/model/mm/AltCLIP.py", line 446, in from_pretrain
super().download(download_path, model_name, only_download_config=only_download_config)
File "/opt/conda/envs/ram/lib/python3.9/site-packages/flagai/model/base_model.py", line 263, in download
if model_id and model_id != "null":
UnboundLocalError: local variable 'model_id' referenced before assignment
The text was updated successfully, but these errors were encountered: