dependencies?

#3
by senegal43 - opened

Just pip installing diffusers gives me
ImportError: cannot import name 'FluxControlNetModel' from 'diffusers'
with the example script. What exactly do I have to install for this to work?

Can't run the code:

Traceback (most recent call last):
File "C:\Users\James\Upscale_test.py", line 5, in
from diffusers import FluxControlNetModel # pip install --upgrade diffusers
ImportError: cannot import name 'FluxControlNetModel' from 'diffusers' (C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers_init_.py)

Solved the error. You need to execute this:

pip install git+https://github.com/huggingface/diffusers.git

Doesn't work still. I got this error:

File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\unets\unet_2d_blocks.py", line 1474, in forward
hidden_states = resnet(hidden_states, temb=None)
File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\diffusers\models\resnet.py", line 341, in forward
hidden_states = self.conv1(hidden_states)
File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\nn\modules\conv.py", line 458, in forward
return self._conv_forward(input, self.weight, self.bias)
File "C:\Users\James\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\nn\modules\conv.py", line 454, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: GET was unable to find an engine to execute this computation

Sign up or log in to comment