Skip to content

Commit

Permalink
Update data_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gengshan-y authored Oct 16, 2023
1 parent 24ed2d2 commit 51f400f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lab4d/dataloader/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class FrameInfo:

def __init__(self, ref_list):
self.num_frames = len(ref_list)
# need the raw frame index to apply Fourier time embedding
raw_dir = ref_list[0].rsplit("/", 1)[0].replace("JPEGImages", "JPEGImagesRaw")
self.num_frames_raw = len(glob.glob(raw_dir + "/*.jpg"))
assert self.num_frames_raw > 0
self.frame_map = [int(path.split("/")[-1].split(".")[0]) for path in ref_list]


Expand Down

0 comments on commit 51f400f

Please sign in to comment.