Skip to content

Commit

Permalink
QoL fix: Progress bar should now respect batch length.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousCervine authored and AnonymousCervine committed Feb 3, 2023
1 parent 390a065 commit 5d49f71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/depth-image-io.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ def run(self, p, input_depth_img, show_depth, batch_img_input, batch_depth_input

processed_output = None

if batch_many_to_many:
num_outputs = len(batch_color) * len(batch_depth)
else:
num_outputs = max(len(batch_color), len(batch_depth))
shared.state.job_count = num_outputs * p.n_iter

def batch_item(depth_img, color_img):
if color_img:
# override input images
Expand Down

0 comments on commit 5d49f71

Please sign in to comment.