Non-integer value for Skip Steps causes error

#2
by citizenplain - opened

Thanks so much for all your work on this! I've found it helpful to adjust Skip Steps in Advanced Settings but the slider in Gradio allows float/decimal values, which causes an error:

IndexError: only integers, slices (:), ellipsis (...), None and long or byte Variables are valid indices (got float)

Changing the decimal value to an integer fixes the problem.

Doesn't work:
Screenshot from 2023-07-07 16-45-02.png

Works:
Screenshot from 2023-07-07 16-44-54.png

I modified line 620 in app.py to add step=1 and it avoids the problem:

skip = gr.Slider(minimum=0, maximum=60, value=36, step=1, label="Skip Steps", interactive=True, info = "At which step to start denoising. Bigger values increase fidelity to input image")
Editing Images org

Thanks for reporting! I have pushed a fix

multimodalart changed discussion status to closed

Sign up or log in to comment