Spaces:
Sleeping
Sleeping
Commit
·
377cd30
1
Parent(s):
3c8ede8
commit
Browse files
python.py
CHANGED
|
@@ -222,7 +222,7 @@ def generate_image(prompt,
|
|
| 222 |
model=get_value_at_index(unetloader_12, 0),
|
| 223 |
)
|
| 224 |
randomnoise = NODE_CLASS_MAPPINGS["RandomNoise"]()
|
| 225 |
-
randomnoise_25 = randomnoise.get_noise(noise_seed=
|
| 226 |
with torch.inference_mode():
|
| 227 |
for q in range(1):
|
| 228 |
modelsamplingflux_61 = modelsamplingflux.patch(
|
|
@@ -265,5 +265,5 @@ def generate_image(prompt,
|
|
| 265 |
saveimage_9 = saveimage.save_images(
|
| 266 |
filename_prefix="image", images=get_value_at_index(vaedecode_8, 0)
|
| 267 |
)
|
| 268 |
-
saved_path = f"output/{saveimage_9['ui']['images'
|
| 269 |
return saved_path, seed
|
|
|
|
| 222 |
model=get_value_at_index(unetloader_12, 0),
|
| 223 |
)
|
| 224 |
randomnoise = NODE_CLASS_MAPPINGS["RandomNoise"]()
|
| 225 |
+
randomnoise_25 = randomnoise.get_noise(noise_seed=str(seed))
|
| 226 |
with torch.inference_mode():
|
| 227 |
for q in range(1):
|
| 228 |
modelsamplingflux_61 = modelsamplingflux.patch(
|
|
|
|
| 265 |
saveimage_9 = saveimage.save_images(
|
| 266 |
filename_prefix="image", images=get_value_at_index(vaedecode_8, 0)
|
| 267 |
)
|
| 268 |
+
saved_path = f"output/{saveimage_9['ui']['images'][0]['filename']}"
|
| 269 |
return saved_path, seed
|