Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -309,7 +309,18 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
309 |
<h4> <a href="https://github.com/Maki-DS/Jax-Controlnet-hand-training/blob/main/normal-preprocessing.py">Standard Data Preprocessing Script</a></h4>
|
310 |
<h4> <a href="https://github.com/Maki-DS/Jax-Controlnet-hand-training/blob/main/Hand-encoded-preprocessing.py">Hand Encoding Data Preprocessing Script</a></h4></center>
|
311 |
""")
|
312 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
# Model input parameters
|
314 |
model_type = gr.Radio(["Standard", "Hand Encoding"], value="Standard", label="Model preprocessing", info="We developed two models, one with standard MediaPipe landmarks, and one with different (but similar) coloring on palm landmarks to distinguish left and right")
|
315 |
|
|
|
309 |
<h4> <a href="https://github.com/Maki-DS/Jax-Controlnet-hand-training/blob/main/normal-preprocessing.py">Standard Data Preprocessing Script</a></h4>
|
310 |
<h4> <a href="https://github.com/Maki-DS/Jax-Controlnet-hand-training/blob/main/Hand-encoded-preprocessing.py">Hand Encoding Data Preprocessing Script</a></h4></center>
|
311 |
""")
|
312 |
+
|
313 |
+
# How to use model
|
314 |
+
with gr.Box():
|
315 |
+
gr.Markdown("""<h2><b>How to use ⌛️</b></h2>""")
|
316 |
+
with gr.Accordion("Generate image with ControlnetHand", open=True):
|
317 |
+
gr.Markdown("""
|
318 |
+
- Step 1. Describe the image you want to create along with the hand details of the uploaded or captured image
|
319 |
+
- Step 2. Provide a negative prompt that helps the model not to create redundant details
|
320 |
+
- Step 3. Upload or capture by webcam a clear image of hands that are prominently visible in the foreground
|
321 |
+
- Step 4. Submit and enjoy
|
322 |
+
""")
|
323 |
+
|
324 |
# Model input parameters
|
325 |
model_type = gr.Radio(["Standard", "Hand Encoding"], value="Standard", label="Model preprocessing", info="We developed two models, one with standard MediaPipe landmarks, and one with different (but similar) coloring on palm landmarks to distinguish left and right")
|
326 |
|