Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FCN-CD-PyTorch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
manli
FCN-CD-PyTorch
Commits
5427d7e9
Commit
5427d7e9
authored
5 years ago
by
Bobholamovic
Browse files
Options
Downloads
Patches
Plain Diff
Fix extra channel in a saved image
parent
134eddfd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config_base.yaml
+1
-1
1 addition, 1 deletion
config_base.yaml
src/core/trainers.py
+1
-1
1 addition, 1 deletion
src/core/trainers.py
with
2 additions
and
2 deletions
config_base.yaml
+
1
−
1
View file @
5427d7e9
...
...
@@ -19,7 +19,7 @@ step: 2
# Training related
batch_size
:
32
num_epochs
:
2
0
num_epochs
:
4
0
resume
:
'
'
load_optim
:
True
anew
:
False
...
...
This diff is collapsed.
Click to expand it.
src/core/trainers.py
+
1
−
1
View file @
5427d7e9
...
...
@@ -267,6 +267,6 @@ class CDTrainer(Trainer):
self
.
logger
.
dump
(
desc
)
if
store
:
self
.
save_image
(
name
[
0
],
CM
,
epoch
)
self
.
save_image
(
name
[
0
],
CM
.
squeeze
(
-
1
)
,
epoch
)
return
self
.
metrics
[
0
].
avg
if
len
(
self
.
metrics
)
>
0
else
max
(
1.0
-
losses
.
avg
,
self
.
_init_max_acc
)
\ No newline at end of file
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