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
Merge requests
!30
Mc deep pixbis
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Mc deep pixbis
mc_deep_pixbis
into
master
Overview
0
Commits
4
Pipelines
1
Changes
1
Merged
Anjith GEORGE
requested to merge
mc_deep_pixbis
into
master
6 years ago
Overview
0
Commits
4
Pipelines
1
Changes
1
Expand
Adds a net architecture, extractor and tests
0
0
Merge request reports
Viewing commit
00b15d32
Prev
Next
Show latest version
1 file
+
1
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
00b15d32
small fix
· 00b15d32
Anjith GEORGE
authored
6 years ago
bob/learn/pytorch/extractor/image/MCDeepPixBiS.py
+
1
−
7
Options
@@ -59,22 +59,16 @@ class MCDeepPixBiSExtractor(Extractor):
pass
else
:
# With the new training
logger
.
debug
(
'
Starting to load the pretrained PAD model
'
)
try
:
cp
=
torch
.
load
(
model_file
)
except
:
try
:
cp
=
torch
.
load
(
model_file
,
map_location
=
lambda
storage
,
loc
:
storage
)
except
:
raise
ValueError
(
'
Failed to load the model file : {}
'
.
format
(
model_file
))
raise
ValueError
(
'
Failed to load the model file : {}
'
.
format
(
model_file
))
if
'
state_dict
'
in
cp
:
self
.
network
.
load_state_dict
(
cp
[
'
state_dict
'
])
elif
:
## check this part
self
.
network
.
load_state_dict
(
cp
)
else
:
raise
ValueError
(
'
Failed to load the state_dict for model file: {}
'
.
format
(
model_file
))
Loading