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

Error when running image variation section in Notebook: #47

Open
Tylersuard opened this issue Apr 28, 2023 · 1 comment
Open

Error when running image variation section in Notebook: #47

Tylersuard opened this issue Apr 28, 2023 · 1 comment

Comments

@Tylersuard
Copy link

ValueError:
Some modules are dispatched on the CPU or the disk. Make sure you have enough GPU RAM to
fit
the quantized model. If you want to dispatch the model on the CPU or the disk while keeping
these modules in 32-bit, you need to set load_in_8bit_fp32_cpu_offload=True and pass a
custom
device_map to from_pretrained. Check
https://huggingface.co/docs/transformers/main/en/main_classes/quantization#offload-between-
cpu-and-gpu
for more details.

@Tylersuard
Copy link
Author

Tylersuard commented Apr 28, 2023

Running on Colab with a GPU and high ram environment. This code caused the error:

from PIL import Image
from io import BytesIO

original_image = Image.open(BytesIO(response.content)).convert("RGB")
original_image = original_image.resize((768, 512))
original_image

@Tylersuard Tylersuard changed the title Error when running style transfer in Notebook: Error when running image variation section in Notebook: Apr 28, 2023
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

No branches or pull requests

1 participant