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
When I run the model, the error shows that 'No such file or directory: 'weights/icon_caption_florence/configuration_florence2.py''. I checked the model downloaded from HF, and it does not contain the file 'configuration_florence2.py'.
However, I found that the file 'configuration_florence2.py' is a sub-file of 'microsoft/Florence-2-base'. I changed the code below, using 'microsoft/Florence-2-base' instead of model_name_or_path, and the project was able to run successfully.
Code: model = AutoModelForCausalLM.from_pretrained(model_name_or_path, torch_dtype=torch.float16, trust_remote_code=True).to(device)
The test result is unexpected; common icons cannot be recognized.
I look forward to your answer. Thank you.
The text was updated successfully, but these errors were encountered:
When I run the model, the error shows that 'No such file or directory: 'weights/icon_caption_florence/configuration_florence2.py''. I checked the model downloaded from HF, and it does not contain the file 'configuration_florence2.py'.
However, I found that the file 'configuration_florence2.py' is a sub-file of 'microsoft/Florence-2-base'. I changed the code below, using 'microsoft/Florence-2-base' instead of model_name_or_path, and the project was able to run successfully.
Code: model = AutoModelForCausalLM.from_pretrained(model_name_or_path, torch_dtype=torch.float16, trust_remote_code=True).to(device)
The test result is unexpected; common icons cannot be recognized.
I look forward to your answer. Thank you.
The text was updated successfully, but these errors were encountered: