Chaerin5 commited on
Commit
644d803
·
1 Parent(s): c683e32

small fixes

Browse files
app.py CHANGED
@@ -29,7 +29,7 @@ FIX_MAX_N = 6
29
  LENGTH = 480
30
 
31
  placeholder = cv2.cvtColor(cv2.imread("placeholder.png"), cv2.COLOR_BGR2RGB)
32
- NEW_MODEL = True
33
  MODEL_EPOCH = 6
34
  HF = False
35
  pre_device = "cpu" if HF else "cuda"
@@ -1378,7 +1378,7 @@ with gr.Blocks(css=custom_css, theme="soft") as demo:
1378
  # ref column
1379
  with gr.Column():
1380
  gr.Markdown(
1381
- """<p style="text-align: center; font-size: 18px; font-weight: bold;">1. Upload a hand image to repose 📥</p>"""
1382
  )
1383
  # gr.Markdown(
1384
  # """<p style="text-align: center;">Optionally crop the image</p>"""
@@ -1497,7 +1497,7 @@ with gr.Blocks(css=custom_css, theme="soft") as demo:
1497
  # target column
1498
  with gr.Column():
1499
  gr.Markdown(
1500
- """<p style="text-align: center; font-size: 18px; font-weight: bold;">2. Upload a hand image for target hand pose 📥</p>"""
1501
  )
1502
  # gr.Markdown(
1503
  # """<p style="text-align: center;">Optionally crop the image</p>"""
@@ -1955,7 +1955,7 @@ with gr.Blocks(css=custom_css, theme="soft") as demo:
1955
  # crop & brush
1956
  with gr.Column():
1957
  gr.Markdown(
1958
- """<p style="text-align: center; font-size: 18px; font-weight: bold;">1. Upload a malformed hand image 📥</p>"""
1959
  )
1960
  fix_crop = gr.Image(
1961
  type="numpy",
@@ -1981,7 +1981,7 @@ with gr.Blocks(css=custom_css, theme="soft") as demo:
1981
  )
1982
  with gr.Column():
1983
  gr.Markdown(
1984
- """<p style="text-align: center; font-size: 18px; font-weight: bold;">2. Brush wrong finger and surrounding area</p>"""
1985
  )
1986
  # gr.Markdown(
1987
  # """<p style="text-align: center;">Don't brush the entire hand!</p>"""
@@ -2159,7 +2159,7 @@ with gr.Blocks(css=custom_css, theme="soft") as demo:
2159
  # """<p style="text-align: center;">✨ Hit &quot;Clear&quot; to restart from the beginning</p>"""
2160
  # )
2161
  fix_clear = gr.ClearButton(elem_id="clear_button")
2162
-
2163
  gr.Examples(
2164
  fix_example_all,
2165
  inputs=[fix_crop, fix_ref, fix_kp_all, fix_cfg, fix_seed, fix_kpts_path],
 
29
  LENGTH = 480
30
 
31
  placeholder = cv2.cvtColor(cv2.imread("placeholder.png"), cv2.COLOR_BGR2RGB)
32
+ NEW_MODEL = True
33
  MODEL_EPOCH = 6
34
  HF = False
35
  pre_device = "cpu" if HF else "cuda"
 
1378
  # ref column
1379
  with gr.Column():
1380
  gr.Markdown(
1381
+ """<p style="text-align: center; font-size: 18px; font-weight: bold;">1. Upload a hand image to repose or choose one below 📥</p>"""
1382
  )
1383
  # gr.Markdown(
1384
  # """<p style="text-align: center;">Optionally crop the image</p>"""
 
1497
  # target column
1498
  with gr.Column():
1499
  gr.Markdown(
1500
+ """<p style="text-align: center; font-size: 18px; font-weight: bold;">2. Upload a hand image for target hand pose or choose one below 📥</p>"""
1501
  )
1502
  # gr.Markdown(
1503
  # """<p style="text-align: center;">Optionally crop the image</p>"""
 
1955
  # crop & brush
1956
  with gr.Column():
1957
  gr.Markdown(
1958
+ """<p style="text-align: center; font-size: 18px; font-weight: bold;">1. Upload a malformed hand image or choose one below 📥</p>"""
1959
  )
1960
  fix_crop = gr.Image(
1961
  type="numpy",
 
1981
  )
1982
  with gr.Column():
1983
  gr.Markdown(
1984
+ """<p style="text-align: center; font-size: 18px; font-weight: bold;">2. Brush wrong finger <br>(⚠️and surrounding area)</p>"""
1985
  )
1986
  # gr.Markdown(
1987
  # """<p style="text-align: center;">Don't brush the entire hand!</p>"""
 
2159
  # """<p style="text-align: center;">✨ Hit &quot;Clear&quot; to restart from the beginning</p>"""
2160
  # )
2161
  fix_clear = gr.ClearButton(elem_id="clear_button")
2162
+ with gr.Row():
2163
  gr.Examples(
2164
  fix_example_all,
2165
  inputs=[fix_crop, fix_ref, fix_kp_all, fix_cfg, fix_seed, fix_kpts_path],
diffusion/__pycache__/__init__.cpython-38.pyc CHANGED
Binary files a/diffusion/__pycache__/__init__.cpython-38.pyc and b/diffusion/__pycache__/__init__.cpython-38.pyc differ
 
diffusion/__pycache__/diffusion_utils.cpython-38.pyc CHANGED
Binary files a/diffusion/__pycache__/diffusion_utils.cpython-38.pyc and b/diffusion/__pycache__/diffusion_utils.cpython-38.pyc differ
 
diffusion/__pycache__/gaussian_diffusion.cpython-38.pyc CHANGED
Binary files a/diffusion/__pycache__/gaussian_diffusion.cpython-38.pyc and b/diffusion/__pycache__/gaussian_diffusion.cpython-38.pyc differ
 
diffusion/__pycache__/respace.cpython-38.pyc CHANGED
Binary files a/diffusion/__pycache__/respace.cpython-38.pyc and b/diffusion/__pycache__/respace.cpython-38.pyc differ
 
diffusion/__pycache__/scheduler.cpython-38.pyc CHANGED
Binary files a/diffusion/__pycache__/scheduler.cpython-38.pyc and b/diffusion/__pycache__/scheduler.cpython-38.pyc differ