deep-floyd / IF

Other
7.64k stars 497 forks source link

4x-upscaler deepfloyd-if python module has problems with win paths #42

Open notune opened 1 year ago

notune commented 1 year ago

In Windows, when running the notebook of the IF-I-XL-v.1.0 model, the following error occurs when trying to download the stable-diffusion-x4-upscaler: HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'stabilityai\stable-diffusion-x4-upscaler'.

A quick fix would be to change line 23 in the file [your-venv-name]\Lib\site-packages\deepfloyd_if\modules to model_id = 'stabilityai/' + self.dir_or_name

ThioJoe commented 1 year ago

Yea was having the same issue and this that fixed it.