Skip to content

Commit

Permalink
fix demo scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis committed Jul 14, 2023
1 parent 6a23e2c commit 0eb310c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
9 changes: 5 additions & 4 deletions demo/body3d_pose_lifter_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,11 @@ def main():

video_writer.write(mmcv.rgb2bgr(frame_vis))

# press ESC to exit
if cv2.waitKey(5) & 0xFF == 27:
break
time.sleep(args.show_interval)
if args.show:
# press ESC to exit
if cv2.waitKey(5) & 0xFF == 27:
break
time.sleep(args.show_interval)

video.release()

Expand Down
9 changes: 5 additions & 4 deletions demo/bottomup_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,12 @@ def main():

video_writer.write(mmcv.rgb2bgr(frame_vis))

# press ESC to exit
if cv2.waitKey(5) & 0xFF == 27:
break
if args.show:
# press ESC to exit
if cv2.waitKey(5) & 0xFF == 27:
break

time.sleep(args.show_interval)
time.sleep(args.show_interval)

if video_writer:
video_writer.release()
Expand Down
9 changes: 5 additions & 4 deletions demo/topdown_demo_with_mmdet.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,12 @@ def main():

video_writer.write(mmcv.rgb2bgr(frame_vis))

# press ESC to exit
if cv2.waitKey(5) & 0xFF == 27:
break
if args.show:
# press ESC to exit
if cv2.waitKey(5) & 0xFF == 27:
break

time.sleep(args.show_interval)
time.sleep(args.show_interval)

if video_writer:
video_writer.release()
Expand Down
2 changes: 1 addition & 1 deletion projects/just_dance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ We provide a Jupyter Notebook [`just_dance_demo.ipynb`](./just_dance_demo.ipynb)
Users can simply run the following command to generate the comparison video:

```shell
python process_video ${TEACHER_VIDEO} ${STUDENT_VIDEO}
python process_video.py ${TEACHER_VIDEO} ${STUDENT_VIDEO}
```

### Gradio
Expand Down

0 comments on commit 0eb310c

Please sign in to comment.