Spaces:
Running
on
Zero
Running
on
Zero
Update flux/cli.py
Browse files- flux/cli.py +1 -2
flux/cli.py
CHANGED
@@ -13,7 +13,6 @@ from transformers import pipeline
|
|
13 |
from flux.sampling import denoise, get_noise, get_schedule, prepare, unpack
|
14 |
from flux.util import (
|
15 |
configs,
|
16 |
-
embed_watermark,
|
17 |
load_ae,
|
18 |
load_clip,
|
19 |
load_flow_model,
|
@@ -228,7 +227,7 @@ def main(
|
|
228 |
print(f"Done in {t1 - t0:.1f}s. Saving {fn}")
|
229 |
# bring into PIL format and save
|
230 |
x = x.clamp(-1, 1)
|
231 |
-
x = embed_watermark(x.float())
|
232 |
x = rearrange(x[0], "c h w -> h w c")
|
233 |
|
234 |
img = Image.fromarray((127.5 * (x + 1.0)).cpu().byte().numpy())
|
|
|
13 |
from flux.sampling import denoise, get_noise, get_schedule, prepare, unpack
|
14 |
from flux.util import (
|
15 |
configs,
|
|
|
16 |
load_ae,
|
17 |
load_clip,
|
18 |
load_flow_model,
|
|
|
227 |
print(f"Done in {t1 - t0:.1f}s. Saving {fn}")
|
228 |
# bring into PIL format and save
|
229 |
x = x.clamp(-1, 1)
|
230 |
+
# x = embed_watermark(x.float())
|
231 |
x = rearrange(x[0], "c h w -> h w c")
|
232 |
|
233 |
img = Image.fromarray((127.5 * (x + 1.0)).cpu().byte().numpy())
|