Why is this code not working on a 9070xt? import torch from diffusers import…
- User
Why is this code not working on a 9070xt? import torch from diffusers import DiffusionPipeline
1. Load the model from local directory
pipe = DiffusionPipeline.from_pretrained( r"G:\model\testmodel", torch_dtype=torch.float16, local_files_only=True # Optional: Force offline mode )
2. Send to GPU (if available)
pipe = pipe.to("cuda")
3. Generate an image
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0]
4. Save the result
image.save("astronaut_jungle.png") print("Image saved successfully!")
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.