Skip to content

Commit

Permalink
fix(flow): Fixes optical flow rgb output key
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfarmer committed Aug 21, 2023
1 parent 9fb4adb commit b8f1cd4
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 b8f1cd4

Please sign in to comment.