Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant download or import models #820

Open
azur-wolve opened this issue Aug 28, 2024 · 7 comments
Open

cant download or import models #820

azur-wolve opened this issue Aug 28, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@azur-wolve
Copy link

azur-wolve commented Aug 28, 2024

Description

Blender 4.2.1
Linux Debian 12

Installed the dependencies but when click on "install stable diffusion 2-1 (recommended)" button.
Screenshot from 2024-08-28 06-56-50
it just stays a bit on 0% and then it disappears
Screenshot from 2024-08-28 06-56-55
and shows the model on the addon preferences list.
Screenshot from 2024-08-28 06-57-29

But when try to select the model on the Dream lateral panel for generation it doesnt appear on the list.
Screenshot from 2024-08-28 06-57-53

Also the same when search for specific models.
Also tried to import checkpoints but simply the same.

Not sure if those must be placed on specific folder or whatever.

Maybe i didnt built correctly from source?

Steps to Reproduce

...

Expected Behavior

...

Addon Version

Other (Built from source)

Blender Version

Blender 4.1+

GPU

NVIDIA RTX 3060 12GB

@azur-wolve azur-wolve added the bug Something isn't working label Aug 28, 2024
@harry-zhang-yiyang
Copy link

same questions

@DSubJ
Copy link

DSubJ commented Oct 15, 2024

same issue on Mac OS Ventura :/

@skrinskas
Copy link

same issue on Opensuse. I checked the discord, in development channel, and the main dev seems to have a fix for it - issue being a bug in pytorch if I am understanding correctly

@gambikules
Copy link

gambikules commented Nov 1, 2024

v 1.0 work fine . After installing 1.0 download sd 2.1 and just update Addon

@f0kes
Copy link

f0kes commented Nov 16, 2024

v 1.0 work fine . After installing 1.0 download sd 2.1 and just update Addon

1.0 of what?

Broken for me also

Traceback (most recent call last):
  File "/var/home/f0kes/.config/blender/4.2/scripts/addons/dream_textures/generator_process/future.py", line 105, in run_callbacks
    done_callback(self)
  File "/var/home/f0kes/.config/blender/4.2/scripts/addons/dream_textures/preferences.py", line 62, in on_done
    fetch_installed_models()
  File "/var/home/f0kes/.config/blender/4.2/scripts/addons/dream_textures/preferences.py", line 161, in fetch_installed_models
    on_done(future)
  File "/var/home/f0kes/.config/blender/4.2/scripts/addons/dream_textures/preferences.py", line 130, in on_done
    model_list = future.result()
                 ^^^^^^^^^^^^^^^
  File "/var/home/f0kes/.config/blender/4.2/scripts/addons/dream_textures/generator_process/future.py", line 52, in result
    raise self._exception
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/var/home/f0kes/.config/blender/4.2/scripts/addons/dream_textures/.python_dependencies/huggingface_hub/__init__.py)

@gambikules
Copy link

1.0 of addon

@Banyango
Copy link

There's seems to be at least two issues for me downloading the latest release.

  1. ImportError: cannot import name 'cached_download' from 'huggingface_hub'

This appears to be related to huggingface_hub removing cached_download in the 0.26.0 release. If you're brave you can reinstall the python dependencies and lock huggingface_hub == 0.25.2. Otherwise the code will need to be updated to use the method recommended here https://github.com/huggingface/huggingface_hub/releases/tag/v0.26.0

  1. There's a compilation error on this line in diffusion_backend.py

install_model.prefer_fp16_revision = context.preferences.addons[StableDiffusionPreferences.bl_idname].preferences.prefer_fp16_revision

it should be

install_model.prefer_fp16_variant = context.preferences.addons[StableDiffusionPreferences.bl_idname].preferences.prefer_fp16_variant

I was able to fix these issue locally and get download running again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants
@Banyango @DSubJ @gambikules @skrinskas @f0kes @harry-zhang-yiyang @azur-wolve and others