From 2296278d6ed7971a9649d09b274c73965bc8603b Mon Sep 17 00:00:00 2001 From: Phi Le Date: Wed, 6 Dec 2023 10:59:18 -0500 Subject: [PATCH] rearranged import --- machine_common_sense/scripts/runner_script.py | 2 +- webenabled/mcsweb.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/machine_common_sense/scripts/runner_script.py b/machine_common_sense/scripts/runner_script.py index cf7e313e..a8440176 100644 --- a/machine_common_sense/scripts/runner_script.py +++ b/machine_common_sense/scripts/runner_script.py @@ -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' diff --git a/webenabled/mcsweb.py b/webenabled/mcsweb.py index b6daf9ec..f01b9e29 100644 --- a/webenabled/mcsweb.py +++ b/webenabled/mcsweb.py @@ -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 @@ -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")