Hello, I recently found this repo and have been trying to use it to run the CroPA attack on LLAVA. I saw that the class EvalModel(BaseEvalModel) doesn't' exist in llava.py, and was wondering if that was intended? And if so how I could resolve the following error:
model_name is: llava
Traceback (most recent call last):
File "/content/Revisting_CroPA/main.py", line 548, in
eval_model = load_model(config_args.device,module,config_args.model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/Revisting_CroPA/utils/attack_tool.py", line 277, in load_model
return load_llava_model(device,module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/Revisting_CroPA/utils/attack_tool.py", line 234, in load_llava_model
eval_model = module.EvalModel(model_args)
^^^^^^^^^^^^^^^^
AttributeError: module 'models.llava' has no attribute 'EvalModel'
Script execution complete for all specified target texts.
Thank you for your time!
Hello, I recently found this repo and have been trying to use it to run the CroPA attack on LLAVA. I saw that the class EvalModel(BaseEvalModel) doesn't' exist in llava.py, and was wondering if that was intended? And if so how I could resolve the following error:
model_name is: llava
Traceback (most recent call last):
File "/content/Revisting_CroPA/main.py", line 548, in
eval_model = load_model(config_args.device,module,config_args.model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/Revisting_CroPA/utils/attack_tool.py", line 277, in load_model
return load_llava_model(device,module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/content/Revisting_CroPA/utils/attack_tool.py", line 234, in load_llava_model
eval_model = module.EvalModel(model_args)
^^^^^^^^^^^^^^^^
AttributeError: module 'models.llava' has no attribute 'EvalModel'
Script execution complete for all specified target texts.
Thank you for your time!