Spaces:
Runtime error
Runtime error
Commit
•
7f0df7c
1
Parent(s):
aceeef1
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ dtype = torch.bfloat16
|
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
|
12 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, revision="refs/pr/3").to(device)
|
13 |
-
pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained
|
14 |
|
15 |
MAX_SEED = np.iinfo(np.int32).max
|
16 |
MAX_IMAGE_SIZE = 2048
|
|
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
|
12 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, revision="refs/pr/3").to(device)
|
13 |
+
#pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="scheduler", revision="refs/pr/3", use_dynamic_shifting=True, shift=1.0)
|
14 |
|
15 |
MAX_SEED = np.iinfo(np.int32).max
|
16 |
MAX_IMAGE_SIZE = 2048
|