Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d3cac54

Browse files
Update main.py
totalEpoch =len(loader.trainSamples)//Model.batchSize gets changed.
1 parent 4e142d4 commit d3cac54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def train(model, loader):
2121
earlyStopping = 25 # Stop training after this number of epochs without improvement
2222
batchNum = 0
2323

24-
totalEpoch = loader.trainSamples//Model.batchSize # loader.numTrainSamplesPerEpoch
24+
totalEpoch = len(loader.trainSamples)//Model.batchSize
2525

2626
while True:
2727
epoch += 1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /