Skip to content

Fix broken cpu-offloading in legacy inpainting SD pipeline #3773

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

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

cmdr2
Copy link
Contributor

@cmdr2 cmdr2 commented Jun 13, 2023

This fixes the error thrown when using the legacy inpainting pipeline (after enabling cpu-offloading): Cannot copy out of meta tensor; no data!

The error is due to an incorrect reference to self.device, instead of the device variable calculated from self._execution_device (which is already used for other tensors).

I've tested that this successfully generates images with and without cpu-offloading.

Thanks!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 13, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten
Copy link
Contributor

Cool PR!

@patrickvonplaten patrickvonplaten merged commit 2715079 into huggingface:main Jun 15, 2023
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants