Skip to content

Commit

Permalink
Fix default values for target resolution height and width in environm…
Browse files Browse the repository at this point in the history
…ent variable handling
  • Loading branch information
GoldenAnpu committed Dec 16, 2024
1 parent 92d4f42 commit 3981a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
if DATASET_ID is not None:
DATASET_ID = int(DATASET_ID)
CHANGE_RESOLUTION = bool(strtobool(os.environ.get('modal.state.changeResolution', 'false')))
TARGET_HEIGHT = int(os.environ.get('modal.state.targetResolutionHeight'), 1280)
TARGET_WIDTH = int(os.environ.get('modal.state.targetResolutionWidth'), 720)
TARGET_HEIGHT = int(os.environ.get('modal.state.targetResolutionHeight', 1280))
TARGET_WIDTH = int(os.environ.get('modal.state.targetResolutionWidth', 720))
target_resolution = (TARGET_WIDTH, TARGET_HEIGHT)

TARGET_FPS = float(os.environ['modal.state.targetFps'])
Expand Down

0 comments on commit 3981a0a

Please sign in to comment.