Spaces:
Running
on
A10G
Running
on
A10G
update logging
Browse files
app.py
CHANGED
@@ -102,9 +102,6 @@ def generate_fn(
|
|
102 |
if seed < 0:
|
103 |
seed = random.randint(1,9999999999999999) #16 digits is an arbitrary limit
|
104 |
|
105 |
-
logger.info(f"Generate images: {prompt=}, {neg_prompt=}, {len(liked)=}, {len(disliked)=}, {max_feedback_imgs=}, {batch_size=}, {seed=}")
|
106 |
-
logger.info(f"Params: {denoising_steps=}, {guidance_scale=}, {feedback_start=}, {feedback_end=}, {min_weight=}, {max_weight=}, {neg_scale=}")
|
107 |
-
|
108 |
max_feedback_imgs = max(0, int(max_feedback_imgs))
|
109 |
total_images = (len(liked) if liked else 0) + (len(disliked) if disliked else 0)
|
110 |
|
@@ -126,6 +123,9 @@ def generate_fn(
|
|
126 |
liked = []
|
127 |
disliked = disliked[-max_feedback_imgs:]
|
128 |
# else: keep all feedback images
|
|
|
|
|
|
|
129 |
|
130 |
generate_kwargs = {
|
131 |
"prompt": prompt,
|
|
|
102 |
if seed < 0:
|
103 |
seed = random.randint(1,9999999999999999) #16 digits is an arbitrary limit
|
104 |
|
|
|
|
|
|
|
105 |
max_feedback_imgs = max(0, int(max_feedback_imgs))
|
106 |
total_images = (len(liked) if liked else 0) + (len(disliked) if disliked else 0)
|
107 |
|
|
|
123 |
liked = []
|
124 |
disliked = disliked[-max_feedback_imgs:]
|
125 |
# else: keep all feedback images
|
126 |
+
|
127 |
+
logger.info(f"Generate images: {prompt=}, {neg_prompt=}, {len(liked)=}, {len(disliked)=}, {max_feedback_imgs=}, {batch_size=}, {seed=}")
|
128 |
+
logger.info(f"Params: {denoising_steps=}, {guidance_scale=}, {feedback_start=}, {feedback_end=}, {min_weight=}, {max_weight=}, {neg_scale=}")
|
129 |
|
130 |
generate_kwargs = {
|
131 |
"prompt": prompt,
|