StartHua / Comfyui_CXH_joy_caption

Recommended based on comfyui node pictures:Joy_caption + MiniCPMv2_6-prompt-generator + florence2
Apache License 2.0
335 stars 20 forks source link

JoyCaption 一运行报错 #50

Open jarmud opened 3 weeks ago

jarmud commented 3 weeks ago

rope_scaling must be a dictionary with two fields, type and factor, got {'factor': 8.0, 'high_freq_factor': 4.0, 'low_freq_factor': 1.0, 'original_max_position_embeddings': 8192, 'rope_type': 'llama3'}

Gonng commented 3 weeks ago

same problem

Radtoo commented 3 weeks ago

Likely needs the newer transformers version: https://github.com/StartHua/Comfyui_CXH_joy_caption/issues/46#issuecomment-2339304976

Gonng commented 3 weeks ago

Likely needs the newer transformers version: #46 (comment)

I have already updated my transformers to version 4.44.2, but it still doesn't work and show the same problem as above:(rope_scaling must be a dictionary with two fields, type and factor, got {'factor': 8.0, 'high_freq_factor': 4.0, 'low_freq_factor': 1.0, 'original_max_position_embeddings': 8192, 'rope_type': 'llama3'})

Gonng commented 3 weeks ago

It is not only the problem of the version of transformers,the best way to solove the problem:(rope_scaling must be a dictionary with two fields, type and factor, got {'factor': 8.0, 'high_freq_factor': 4.0, 'low_freq_factor': 1.0, 'original_max_position_embeddings': 8192, 'rope_type': 'llama3'}) 不仅仅是transformers 版本的问题,上面这个问题,要跑一下插件目录里的这个bat文件,安装环境

is to run the .bat file below,

Snipaste_2024-09-13_17-33-07

that means you have aligned all the environments requirements for this project.

after doing this,my problem has been soloved 运行完了,我的问题就解决了

jarmud commented 3 weeks ago

I gave up, it should be due to a conflict between my environmental dependence and my previous comfyui. After running the bat installation, it can indeed be used normally, but the images generated by other processes have turned pure black,