Skip to content

Commit

Permalink
rearranged import
Browse files Browse the repository at this point in the history
  • Loading branch information
phile-caci committed Dec 6, 2023
1 parent cb8670c commit 2296278
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion machine_common_sense/scripts/runner_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(
)
if args.save_videos:
subprocess.call([
'ffmpeg', '-y', '-r', '20', '-i',
'ffmpeg', '-y', '-r', '20', '-i', '-q:v', '1',
scene_name + '/frame_image_%d.png',
'-vcodec', 'h264', '-vf', 'format=yuv420p',
scene_name + '.mp4'
Expand Down
5 changes: 2 additions & 3 deletions webenabled/mcsweb.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import logging
import os
import random
import string

import psutil
import typeguard
import os


# Override the typechecked decorator used in machine_common_sense to do nothing
Expand Down Expand Up @@ -219,8 +219,7 @@ def exit_unity():
resp.delete_cookie('uniq_id')

# delete static/mcsinterface/ folders
app.logger.info(
f"Deleting static/mcsinterface/ folders")
app.logger.info(f'{"Deleting static/mcsinterface/ folders"}')
os.system("find ./static/mcsinterface -name 'cmd_*' | xargs rm -r")
os.system("find ./static/mcsinterface -name 'output_*' | xargs rm -r")
# TODO: os.system("find ./static/mcsinterface -name 'img_*' | xargs rm -r")
Expand Down

0 comments on commit 2296278

Please sign in to comment.