IF icon indicating copy to clipboard operation
IF copied to clipboard

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

Open notune opened this issue 2 years ago • 1 comments

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

notune avatar Apr 28 '23 19:04 notune

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

ThioJoe avatar Apr 29 '23 02:04 ThioJoe