Skip to content

Commit

Permalink
update train.py
Browse files Browse the repository at this point in the history
Not using bucketing if continue training from checkpoint_per_batch in 1st epoch
  • Loading branch information
srviest committed Aug 16, 2017
1 parent d5e86f8 commit 7d25f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def main():
}
for tag, val in info.items():
logger.scalar_summary(tag, val, i + 1)
if not args.no_bucketing:
if not args.no_bucketing and epoch != 0:
print("Using bucketing sampler for the following epochs")
train_dataset = SpectrogramDatasetWithLength(audio_conf=audio_conf, manifest_filepath=args.train_manifest,
labels=labels,
Expand Down

0 comments on commit 7d25f4f

Please sign in to comment.