Spaces:
Runtime error
Runtime error
Update ominicontrol.py
Browse files- ominicontrol.py +3 -3
ominicontrol.py
CHANGED
|
@@ -47,7 +47,9 @@ def generate_image(
|
|
| 47 |
steps,
|
| 48 |
use_random_seed,
|
| 49 |
seed,
|
| 50 |
-
):
|
|
|
|
|
|
|
| 51 |
# Prepare Condition
|
| 52 |
def resize(img, factor=16):
|
| 53 |
w, h = img.size
|
|
@@ -120,8 +122,6 @@ def generate_image(
|
|
| 120 |
max_sequence_length=32,
|
| 121 |
).images[0]
|
| 122 |
# result_img = image
|
| 123 |
-
|
| 124 |
-
condition_id = log_image(result_img)
|
| 125 |
result_id = log_image(result_img)
|
| 126 |
|
| 127 |
log_data = {
|
|
|
|
| 47 |
steps,
|
| 48 |
use_random_seed,
|
| 49 |
seed,
|
| 50 |
+
):
|
| 51 |
+
condition_id = log_image(image)
|
| 52 |
+
|
| 53 |
# Prepare Condition
|
| 54 |
def resize(img, factor=16):
|
| 55 |
w, h = img.size
|
|
|
|
| 122 |
max_sequence_length=32,
|
| 123 |
).images[0]
|
| 124 |
# result_img = image
|
|
|
|
|
|
|
| 125 |
result_id = log_image(result_img)
|
| 126 |
|
| 127 |
log_data = {
|