Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Merge requests
!40
Lightning acc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Lightning acc
lightning-acc
into
main
Overview
4
Commits
5
Pipelines
3
Changes
1
1 unresolved thread
Hide all comments
Merged
Gokhan OZBULAK
requested to merge
lightning-acc
into
main
10 months ago
Overview
4
Commits
5
Pipelines
3
Changes
1
1 unresolved thread
Hide all comments
Expand
Closes
#25 (closed)
Edited
9 months ago
by
Daniel CARRON
0
0
Merge request reports
Viewing commit
dbee52bf
Prev
Next
Show latest version
1 file
+
8
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
dbee52bf
Fixed help text for new usage.
#25
· dbee52bf
Gokhan OZBULAK
authored
10 months ago
src/mednet/scripts/train.py
+
8
−
9
Options
@@ -83,15 +83,14 @@ def reusable_options(f):
"
-c
"
,
help
=
"
Number of chunks in every batch (this parameter affects
"
"
memory requirements for the network). The number of samples
"
"
loaded for every iteration will be batch-size/batch-chunk-count.
"
"
batch-size needs to be divisible by batch-chunk-count, otherwise an
"
"
error will be raised. This parameter is used to reduce the number of
"
"
samples loaded in each iteration, in order to reduce the memory usage
"
"
in exchange for processing time (more iterations). This is especially
"
"
interesting when one is training on GPUs with limited RAM. The
"
"
default of 1 forces the whole batch to be processed at once. Otherwise
"
"
the batch is broken into batch-chunk-count pieces, and gradients are
"
"
accumulated to complete each batch.
"
,
"
loaded for every iteration will be batch-size*batch-chunk-count.
"
"
This parameter is used to reduce the number of samples loaded in each
"
"
iteration, in order to reduce the memory usage in exchange for
"
"
processing time (more iterations). This is especially interesting
"
"
when one is training on GPUs with limited RAM. The default of 1 forces
"
"
the whole batch to be processed at once. Otherwise the batch is
"
"
multiplied by batch-chunk-count pieces, and gradients are accumulated
"
"
to complete each batch.
"
,
required
=
True
,
show_default
=
True
,
default
=
1
,
Loading