Skip to content

Commit

Permalink
fix refactoring bugs in movi_def_worker (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
m43 authored Mar 4, 2024
1 parent 0d84127 commit a04d1fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion challenges/movi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ docker run --rm --interactive \
kubricdockerhub/kubruntu \
/usr/bin/python3 challenges/movi/movi_def_worker.py \
--camera=linear_movement_linear_lookat \
--max_camera_motion=8.0
--max_camera_movement=8.0
```

See [movi_e.py](movi_e.py) for the TFDS definition / conversion.
Expand Down
8 changes: 4 additions & 4 deletions challenges/movi/movi_def_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
parser.add_argument("--backgrounds_split", choices=["train", "test"],
default="train")

parser.add_argument("--camera", choices=["fixed_random", "linear_movement"],
parser.add_argument("--camera", choices=["fixed_random", "linear_movement", "linear_movement_linear_lookat"],
default="fixed_random")
parser.add_argument("--max_camera_movement", type=float, default=4.0)
parser.add_argument("--max_motion_blur", type=float, default=0.0)
Expand Down Expand Up @@ -169,11 +169,11 @@ def get_linear_lookat_motion_start_end(
inner_radius=7., outer_radius=9., offset=0.1)
scene.camera.look_at((0, 0, 0))
elif (
config.camera == "linear_movement"
or config.camera == "linear_movement_linear_lookat"
FLAGS.camera == "linear_movement"
or FLAGS.camera == "linear_movement_linear_lookat"
):

is_panning = config.camera == "linear_movement_linear_lookat"
is_panning = FLAGS.camera == "linear_movement_linear_lookat"
camera_inner_radius = 6.0 if is_panning else 8.0
camera_start, camera_end = get_linear_camera_motion_start_end(
movement_speed=rng.uniform(low=0., high=FLAGS.max_camera_movement)
Expand Down

0 comments on commit a04d1fa

Please sign in to comment.