Spaces:
Configuration error
Configuration error
change defaut lr
Browse files
app.py
CHANGED
@@ -143,9 +143,9 @@ with gr.Blocks(css="styles.css") as demo:
|
|
143 |
step=1,
|
144 |
value=20,
|
145 |
label="Iterations: How many steps the model will take to modify the image. Try starting small and seeing how the results turn out, you can always resume with afterwards",)
|
146 |
-
learning_rate = gr.Slider(minimum=
|
147 |
-
maximum=
|
148 |
-
value=1e-
|
149 |
label="Learning Rate: How strong the change in each step will be (you should raise this for bigger changes (for example, changing hair color), and lower it for more minor changes. Raise if changes aren't strong enough")
|
150 |
with gr.Accordion(label="Advanced Prompt Editing Options", open=False):
|
151 |
lpips_weight = gr.Slider(minimum=0,
|
@@ -182,5 +182,19 @@ with gr.Blocks(css="styles.css") as demo:
|
|
182 |
rewind.change(state.rewind, inputs=[rewind], outputs=[out, mask])
|
183 |
set_mask.click(state.set_mask, inputs=mask, outputs=testim)
|
184 |
demo.queue()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
demo.launch(debug=True, enable_queue=True)
|
186 |
|
|
|
|
143 |
step=1,
|
144 |
value=20,
|
145 |
label="Iterations: How many steps the model will take to modify the image. Try starting small and seeing how the results turn out, you can always resume with afterwards",)
|
146 |
+
learning_rate = gr.Slider(minimum=4e-3,
|
147 |
+
maximum=7e-1,
|
148 |
+
value=1e-1,
|
149 |
label="Learning Rate: How strong the change in each step will be (you should raise this for bigger changes (for example, changing hair color), and lower it for more minor changes. Raise if changes aren't strong enough")
|
150 |
with gr.Accordion(label="Advanced Prompt Editing Options", open=False):
|
151 |
lpips_weight = gr.Slider(minimum=0,
|
|
|
182 |
rewind.change(state.rewind, inputs=[rewind], outputs=[out, mask])
|
183 |
set_mask.click(state.set_mask, inputs=mask, outputs=testim)
|
184 |
demo.queue()
|
185 |
+
<<<<<<< HEAD
|
186 |
+
demo.launch(debug=True, inbrowser=True, enable_queue=True)
|
187 |
+
# if __name__ == "__main__":
|
188 |
+
# import argparse
|
189 |
+
# parser = argparse.ArgumentParser()
|
190 |
+
# parser.add_argument('--debug', action='store_true', default=False, help='Enable debugging output')
|
191 |
+
# args = parser.parse_args()
|
192 |
+
# # if args.debug:
|
193 |
+
# # state=None
|
194 |
+
# # promptoptim=None
|
195 |
+
# # else:
|
196 |
+
# main()
|
197 |
+
=======
|
198 |
demo.launch(debug=True, enable_queue=True)
|
199 |
|
200 |
+
>>>>>>> refs/remotes/origin/main
|