mrneuralnet commited on
Commit
b2d6b78
·
1 Parent(s): f630ba5

Add more batchsize

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def main():
68
 
69
 
70
  with st.spinner(f'Processing {file_type}...'):
71
- processing_stdout = subprocess.run(shlex.split(f"""python extract_video.py --device cuda --max_frames 50 --bs 32 --frame_interval 60 --confidence_threshold 0.997 --data_path "{filepath}" """), capture_output=True)
72
  st.text(f'1. Processing {file_type} ✅')
73
  with st.spinner(f'Analyzing {file_type}...'):
74
  analyze_stdout = subprocess.run(shlex.split(f"""python inference.py --weight weights/model_params_ffpp_c23.pickle --device cuda --image_folder "{base_folder}/images/{filename}" """), capture_output=True)
 
68
 
69
 
70
  with st.spinner(f'Processing {file_type}...'):
71
+ processing_stdout = subprocess.run(shlex.split(f"""python extract_video.py --device cuda --max_frames 50 --bs 128 --frame_interval 60 --confidence_threshold 0.997 --data_path "{filepath}" """), capture_output=True)
72
  st.text(f'1. Processing {file_type} ✅')
73
  with st.spinner(f'Analyzing {file_type}...'):
74
  analyze_stdout = subprocess.run(shlex.split(f"""python inference.py --weight weights/model_params_ffpp_c23.pickle --device cuda --image_folder "{base_folder}/images/{filename}" """), capture_output=True)