-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when choosing Florence-2-base-PromptGen-v1.5 model, error as bellow #79
Comments
same problem, even after reinstalled the plugin |
So its an issue with the promptgen model's config file. I got it to work by doing the following.
It will re-download a newer file from the microsoft repo, then it will work. |
@askmyteapot A small clarification for your instruction "Edit config.json and add the following at line 6":
Accordingly, for the base 1.5 model it should look like this:
just like it is done in models\LLM\Florence-2-large\config.json The confusion is added by the fact that in other extension packs (for example in LayerStyle) these models are downloaded to the florence2 directory, not to LLM, and these config.jsons do not contain the discussed code. Therefore, being in the models\florence2\ subdirectory, I simply create symlinks to the LLM subdirectories in PoweShell:
|
Traceback (most recent call last):
File "D:\ComfyUI-aki-v1.2\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "D:\ComfyUI-aki-v1.2\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "D:\ComfyUI-aki-v1.2\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI-aki-v1.2\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "D:\ComfyUI-aki-v1.2\custom_nodes\ComfyUI-Florence2\nodes.py", line 97, in loadmodel
model = AutoModelForCausalLM.from_pretrained(model_path, attn_implementation=attention, device_map=device, torch_dtype=dtype,trust_remote_code=True)
File "D:\ComfyUI-aki-v1.2\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 526, in from_pretrained
config, kwargs = AutoConfig.from_pretrained(
File "D:\ComfyUI-aki-v1.2\python\lib\site-packages\transformers\models\auto\configuration_auto.py", line 1025, in from_pretrained
raise ValueError(
ValueError: The checkpoint you are trying to load has model type
florence2
but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.The text was updated successfully, but these errors were encountered: