ali-vilab / Ranni

https://ranni-t2i.github.io/Ranni/
Apache License 2.0
207 stars 15 forks source link

bug on initializing open-clip model #3

Closed guyuchao closed 5 months ago

guyuchao commented 5 months ago

In the config, you disable the clip by setting the version to None, So the initializing the clip encounter the following error. How to fix this bug?

cond_stage_config: target: ranni.ranni.HackedFrozenOpenCLIPEmbedder params: freeze: True layer: "penultimate" version: null # disable loading CLIP here

Screenshot 2024-04-08 at 10 50 00 PM
rivaldophilip commented 5 months ago

@guyuchao could I ask how did you fix this? Encountered the same error image

guyuchao commented 5 months ago

change null to '' should fix this problem

thss15fyt commented 5 months ago

This is an error caused by the open_clip version. Update it to fix: pip install open_clip_torch==2.24.0 I will also fix the environment requirements soon.