kohya-ss / kohya-ss/sd-scripts

How is num_epochs calculated?

Open
#366 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

Cant understand, how is num_epochs calculated.
I use, for example, 16 images, 1 repeat, 5 epochs, 1 batch size, 16 grad accum steps. And i get 40 epoch.
Why batches per epoch is 32?
What? 😢
Help me out pls
image

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Reproduce the reported configuration of 16 images, 1 repeat, 5 epochs, batch size 1, and 16 gradient-accumulation steps, then trace where batches per epoch and num_epochs are reported. Done means documenting the calculation and explaining why the output shows 32 batches per epoch and 40 epochs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.