Skip to content
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

Optimize Progress Bar Implementation in train.py #15

Open
heouchen opened this issue Dec 4, 2024 · 1 comment
Open

Optimize Progress Bar Implementation in train.py #15

heouchen opened this issue Dec 4, 2024 · 1 comment

Comments

@heouchen
Copy link

heouchen commented Dec 4, 2024

The code in train.py(line:123-124)

with tqdm(total=len(train_set), desc=f'Epoch {epoch + 1} / {epochs}',
          unit='img') as pbar:

showed be modify to:

with tqdm(total=len(train_loader), desc=f'Epoch {epoch + 1} / {epochs}',
          unit='batch') as pbar:
@mahmoudnafifi
Copy link
Owner

Thanks! Could you please create a PR with the fix?

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

No branches or pull requests

2 participants