Skip to content

Commit

Permalink
fix default val size
Browse files Browse the repository at this point in the history
  • Loading branch information
leng-yue committed Dec 21, 2023
1 parent bce85f5 commit 96d07b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/vqgan/create_train_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main(root, val_ratio, val_count, filelist):

if val_count is None and val_ratio is None:
logger.info("Validation ratio and count not specified, using min(20%, 100)")
val_size = min(1, math.ceil(len(files) * 0.2))
val_size = min(100, math.ceil(len(files) * 0.2))
elif val_count is not None and val_ratio is not None:
logger.error("Cannot specify both val_count and val_ratio")
return
Expand Down

0 comments on commit 96d07b3

Please sign in to comment.