Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ tokenizer_3 = T5TokenizerFast.from_pretrained(
|
|
| 64 |
# Ensure model and scheduler are initialized in GPU-enabled function
|
| 65 |
if torch.cuda.is_available():
|
| 66 |
pipe = StableDiffusion3Pipeline.from_pretrained(repo, vae=vae, transformer=transformer, tokenizer_3=tokenizer_3, text_encoder_3=text_encoder_3, torch_dtype=torch.float16).to("cuda")
|
| 67 |
-
pipe2 = StableDiffusion3Img2ImgPipeline.from_pretrained(repo, vae=vae, transformer=transformer,
|
| 68 |
|
| 69 |
pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 70 |
pipe2.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)
|
|
|
|
| 64 |
# Ensure model and scheduler are initialized in GPU-enabled function
|
| 65 |
if torch.cuda.is_available():
|
| 66 |
pipe = StableDiffusion3Pipeline.from_pretrained(repo, vae=vae, transformer=transformer, tokenizer_3=tokenizer_3, text_encoder_3=text_encoder_3, torch_dtype=torch.float16).to("cuda")
|
| 67 |
+
pipe2 = StableDiffusion3Img2ImgPipeline.from_pretrained(repo, vae=vae, transformer=transformer, tokenizer=tokenizer_3, text_encoder=text_encoder_3, torch_dtype=torch.float16).to("cuda")
|
| 68 |
|
| 69 |
pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 70 |
pipe2.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)
|