Skip to content

fix: __len__ returns float instead of int - #57

Draft
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/amass-dataset-244a749b
Draft

fix: __len__ returns float instead of int#57
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/amass-dataset-244a749b

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Problem

fix: len returns float instead of int

Fix

Replace:

    def __len__(self):
       return self.ntime_per_epoch // self.seq_len

with:

    def __len__(self):
       return int(self.ntime_per_epoch) // self.seq_len

Files changed

  • motion_infiller/data/amass_dataset.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant