Spaces:
Sleeping
Sleeping
fix: dtype
Browse files
app.py
CHANGED
|
@@ -14,8 +14,8 @@ from utils.sd3 import sd3_editing
|
|
| 14 |
|
| 15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 16 |
|
| 17 |
-
pipe_sd3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers",
|
| 18 |
-
pipe_flux = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev",
|
| 19 |
|
| 20 |
|
| 21 |
def seed_everything(seed: int) -> None:
|
|
|
|
| 14 |
|
| 15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 16 |
|
| 17 |
+
pipe_sd3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
|
| 18 |
+
pipe_flux = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
|
| 19 |
|
| 20 |
|
| 21 |
def seed_everything(seed: int) -> None:
|