Skip to content

Transformers issue with Florence 2 node #135

Description

@mdkberry

!!! Exception during processing !!! Unrecognized configuration class <class 'transformers_modules.Florence-2-large.configuration_florence2.Florence2LanguageConfig'> for this kind of AutoModel: AutoModelForCausalLM.

This happened yesterday when something I installed broke Florence 2 by upgrading the transformers to a later version.

I did this and it fixed it yesterday

On comfyui portable version go into \python_embed folder windows command prompt.
`python.exe -m pip uninstall transformers`
then reinstall the version in Kijai's  `"M:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Florence2\requirements.txt"`
which is `transformers>=4.39.0` 
or just run the requirements using (do it from the folder above the python_embed else it wont like it: `python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-Florence2\requirements.txt`

today that isnt working. I think that trick took it back to version .49 yesterday IIRC but today its going to .50 which, is what I had a problem with yday. I believe it is actually now on 51 today when I removed it again. Gonna try force downgrading it to .49 version next, but maybe someone can figure what is going on and if there is a better approach.

yea, this is the version needed today to work and manually install - ComfyUI\ComfyUI_windows_portable\python_embeded>python.exe -m pip install transformers==4.49.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions