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
Hi, @xinyu1205
After installing the package in different venv, I ran inference_ram_plus.py file and faced this error:
Traceback (most recent call last): File "/Users/pranavkumar/Desktop/py-image-tag/main.py", line 43, in <module> model = ram_plus(pretrained=args.pretrained, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pranavkumar/anaconda3/envs/imgageTag/lib/python3.11/site-packages/ram/models/ram_plus.py", line 398, in ram_plus model, msg = load_checkpoint_swinlarge(model, pretrained, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pranavkumar/anaconda3/envs/imgageTag/lib/python3.11/site-packages/ram/models/utils.py", line 258, in load_checkpoint_swinlarge raise RuntimeError('checkpoint url or path is invalid') RuntimeError: checkpoint url or path is invalid
The text was updated successfully, but these errors were encountered:
The error message "RuntimeError: checkpoint url or path is invalid" indicates that the code is unable to locate or load the pre-trained model weights (checkpoint) you're trying to use.
Hi, @xinyu1205
After installing the package in different venv, I ran inference_ram_plus.py file and faced this error:
Traceback (most recent call last): File "/Users/pranavkumar/Desktop/py-image-tag/main.py", line 43, in <module> model = ram_plus(pretrained=args.pretrained, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pranavkumar/anaconda3/envs/imgageTag/lib/python3.11/site-packages/ram/models/ram_plus.py", line 398, in ram_plus model, msg = load_checkpoint_swinlarge(model, pretrained, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pranavkumar/anaconda3/envs/imgageTag/lib/python3.11/site-packages/ram/models/utils.py", line 258, in load_checkpoint_swinlarge raise RuntimeError('checkpoint url or path is invalid') RuntimeError: checkpoint url or path is invalid
The text was updated successfully, but these errors were encountered: