-
Notifications
You must be signed in to change notification settings - Fork 23
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
AttributeError: 'StableDiffusionXLDiffImg2ImgPipeline' object has no attribute '_execution_device' #6
Comments
Hello,
|
Here's the pip freeze: I'm using Python 3.10.11 |
After replacing the lines in the diff_pipe.py file and running the script I now get this error: |
So, the virtual environment (venv) you're using has different dependencies installed than what is required. Specifically, you're using an older version of the diffuser package compared to what is listed in requirements.txt
Additionally, the Python version is newer, but I believe that, besides some warnings during installation, this will not cause any issues. See: https://github.com/exx8/differential-diffusion?tab=readme-ov-file#installation For the expected installation process. Thanks for the cooperation. |
When running the script for SDXL, I get the following error:
The config attributes {'force_upcast': True} were passed to AutoencoderKL, but are not expected and will be ignored. Please verify your config.json configuration file.
Traceback (most recent call last):
File "G:\ComfyUI_windows_portable\differential-diffusion\SDXL\run.py", line 49, in
edited_images = base(prompt=prompt, original_image=image, image=image, strength=1, guidance_scale=17.5,
File "G:\ComfyUI_windows_portable\differential-diffusion\venv\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "G:\ComfyUI_windows_portable\differential-diffusion\SDXL\diff_pipe.py", line 853, in call
device = self._execution_device
File "G:\ComfyUI_windows_portable\differential-diffusion\venv\lib\site-packages\diffusers\configuration_utils.py", line 137, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'StableDiffusionXLDiffImg2ImgPipeline' object has no attribute '_execution_device'
The text was updated successfully, but these errors were encountered: