-
Notifications
You must be signed in to change notification settings - Fork 133
Improve dataset preparation support + multiresolution prep #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. Love the thread-based serialization.
@sayakpaul okay to merge? could you approve if yes? |
if len(bucket) == 0: | ||
continue | ||
if self.shuffle: | ||
random.shuffle(bucket) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also fix the seed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set_seed already does this in the training and preparation scripts
parser.add_argument( | ||
"--height_buckets", | ||
nargs="+", | ||
type=check_height, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful!
# 3. Prepare models | ||
device = f"cuda:{rank}" | ||
|
||
generator = torch.Generator(device).manual_seed(args.seed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe better to always initialize the seed on a CPU.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, setting it to cpu is giving some weird device mismatch errors 🤔 i will try debugging soon, but for now, on a given gpu and same seed, seems to be fully reproducible (but yes i know why cpu is better alternative). todo
Fixes #4