Skip to content

Commit

Permalink
Merge pull request #963 from DLR-RM/iss_684_optical_flow_fix_rgb_key
Browse files Browse the repository at this point in the history
fix(flow): Fixes optical flow rgb output key
  • Loading branch information
cornerfarmer authored Aug 21, 2023
2 parents 59a32b0 + b8f1cd4 commit 3c2cc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blenderproc/python/renderer/FlowRendererUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def render_optical_flow(output_dir: str = None, temp_dir: str = None, get_forwar
temporary_fwd_flow_file_path = os.path.join(temp_dir, 'fwd_flow_')
temporary_bwd_flow_file_path = os.path.join(temp_dir, 'bwd_flow_')
print(f"Rendering {bpy.context.scene.frame_end - bpy.context.scene.frame_start} frames of optical flow...")
RendererUtility.render(temp_dir, "bwd_flow_", None, load_keys=set(), verbose=verbose)
RendererUtility.render(temp_dir, "img_flow_temp_ignore_me_", None, load_keys=set(), verbose=verbose)

# After rendering: convert to optical flow or calculate hsv visualization, if desired
for frame in range(bpy.context.scene.frame_start, bpy.context.scene.frame_end):
Expand Down

0 comments on commit 3c2cc1f

Please sign in to comment.