Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.pytorch
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
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.pytorch
Commits
4ac50d6a
Commit
4ac50d6a
authored
6 years ago
by
Anjith GEORGE
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
38a5586f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!18
MCCNN trainer
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/learn/pytorch/trainers/MCCNNTrainer.py
+5
-4
5 additions, 4 deletions
bob/learn/pytorch/trainers/MCCNNTrainer.py
with
5 additions
and
4 deletions
bob/learn/pytorch/trainers/MCCNNTrainer.py
+
5
−
4
View file @
4ac50d6a
...
@@ -13,7 +13,7 @@ logger = bob.core.log.setup("bob.learn.pytorch")
...
@@ -13,7 +13,7 @@ logger = bob.core.log.setup("bob.learn.pytorch")
import
time
import
time
import
os
import
os
"""
#TODO:
#TODO:
#0. Add class balancing
#0. Add class balancing
#1. Logging to tensorboardX or a simpler logger
#1. Logging to tensorboardX or a simpler logger
...
@@ -21,8 +21,9 @@ import os
...
@@ -21,8 +21,9 @@ import os
#3. Use to(device) instead of .cuda()?
#3. Use to(device) instead of .cuda()?
#4. Functionality to select channels from the dataloader: may be move this to the datafolder class
#4. Functionality to select channels from the dataloader: may be move this to the datafolder class
#5. Moving more arguments to config?
#5. Moving more arguments to config?
#6. Implement the selection of channels as a transform
"""
def
comp_bce_loss_weights
(
target
):
def
comp_bce_loss_weights
(
target
):
"""
"""
Compute the balancing weights for the BCE loss function.
Compute the balancing weights for the BCE loss function.
...
@@ -64,7 +65,7 @@ class MCCNNTrainer(object):
...
@@ -64,7 +65,7 @@ class MCCNNTrainer(object):
The network to train
The network to train
batch_size: int
batch_size: int
The size of your minibatch
The size of your minibatch
use_gpu: bool
ean
use_gpu: bool
If you would like to use the gpu
If you would like to use the gpu
verbosity_level: int
verbosity_level: int
The level of verbosity output to stdout
The level of verbosity output to stdout
...
@@ -80,7 +81,7 @@ class MCCNNTrainer(object):
...
@@ -80,7 +81,7 @@ class MCCNNTrainer(object):
The network to train
The network to train
batch_size: int
batch_size: int
The size of your minibatch
The size of your minibatch
use_gpu: bool
ean
use_gpu: bool
If you would like to use the gpu
If you would like to use the gpu
adapted_layers: str
adapted_layers: str
The blocks in the CNN to adapt; only the ones listed are adapted in the training. The layers are separated by
'
-
'
in the
The blocks in the CNN to adapt; only the ones listed are adapted in the training. The layers are separated by
'
-
'
in the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment