Skip to content

Commit

Permalink
Fixed nb helper not respecting n_frames arg
Browse files Browse the repository at this point in the history
  • Loading branch information
harskish committed Jun 3, 2020
1 parent e80b66b commit 43c9a31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notebooks/notebook_utils.py
Expand Up @@ -98,8 +98,10 @@ def _create_strip_batch_sigma(inst, mode, layer, latents, x_comp, z_comp, act_st
if img_batch.ndim == 3:
img_batch = np.expand_dims(img_batch, axis=0)

for img in img_batch:
batch_frames[i_lat].append(img)
for j, img in enumerate(img_batch):
idx = i_batch*B + j
if idx < num_frames:
batch_frames[i_lat].append(img)

return batch_frames

Expand Down

0 comments on commit 43c9a31

Please sign in to comment.