Adi commited on
Commit
1618898
1 Parent(s): 96b201b

chore:trying to loop mesh

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. visualize/simplify_loc2rot.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ with col2:
90
  # Render the input fields inside the placeholder
91
  with input_placeholder.container():
92
  text_input = st.text_area("Enter text here:", value=st.session_state.text_input, key="text_input", height=300)
93
- length = st.number_input("Length of the generated text:", value=st.session_state.length, key="length")
94
 
95
  # Place the buttons side by side
96
  button_col1, button_col2 = st.columns(2)
@@ -133,5 +133,5 @@ if 'html_content' in st.session_state or 'gif_base64' in st.session_state:
133
 
134
  with disp_col2:
135
  if gif_base64:
136
- gif_html = f'<img src="data:image/gif;base64,{gif_base64}" style="width:100%;">'
137
  components.html(gif_html, height=800, scrolling=True)
 
90
  # Render the input fields inside the placeholder
91
  with input_placeholder.container():
92
  text_input = st.text_area("Enter text here:", value=st.session_state.text_input, key="text_input", height=300)
93
+ length = st.number_input("Length of the generated motion:", value=st.session_state.length, key="length")
94
 
95
  # Place the buttons side by side
96
  button_col1, button_col2 = st.columns(2)
 
133
 
134
  with disp_col2:
135
  if gif_base64:
136
+ gif_html = f'<img src="data:image/gif;base64,{gif_base64}" style="width:100%;" loop="infinite">'
137
  components.html(gif_html, height=800, scrolling=True)
visualize/simplify_loc2rot.py CHANGED
@@ -18,7 +18,7 @@ class joints2smpl:
18
  self.batch_size = num_frames
19
  self.num_joints = 22 # for HumanML3D
20
  self.joint_category = "AMASS"
21
- self.num_smplify_iters = 120
22
  self.fix_foot = False
23
  print(config.SMPL_MODEL_DIR)
24
  smplmodel = smplx.create(config.SMPL_MODEL_DIR,
 
18
  self.batch_size = num_frames
19
  self.num_joints = 22 # for HumanML3D
20
  self.joint_category = "AMASS"
21
+ self.num_smplify_iters = 5
22
  self.fix_foot = False
23
  print(config.SMPL_MODEL_DIR)
24
  smplmodel = smplx.create(config.SMPL_MODEL_DIR,