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
a19f1f5c
Commit
a19f1f5c
authored
6 years ago
by
Anjith GEORGE
Browse files
Options
Downloads
Patches
Plain Diff
Commented out model loading part
parent
f2da377a
No related branches found
No related tags found
1 merge request
!17
Mccn extended
Pipeline
#26549
failed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/learn/pytorch/architectures/MCCNN.py
+7
-7
7 additions, 7 deletions
bob/learn/pytorch/architectures/MCCNN.py
with
7 additions
and
7 deletions
bob/learn/pytorch/architectures/MCCNN.py
+
7
−
7
View file @
a19f1f5c
...
...
@@ -93,20 +93,20 @@ class MCCNN(nn.Module):
print
(
"
light_cnn_model_file
"
,
light_cnn_model_file
)
if
not
os
.
path
.
exists
(
light_cnn_model_file
):
#
if not os.path.exists(light_cnn_model_file):
bob
.
io
.
base
.
create_directories_safe
(
os
.
path
.
split
(
light_cnn_model_file
)[
0
])
#
bob.io.base.create_directories_safe(os.path.split(light_cnn_model_file)[0])
print
(
'
Downloading the LightCNN model
'
)
#
print('Downloading the LightCNN model')
bob
.
extension
.
download
.
download_file
(
url
,
light_cnn_model_file
)
#
bob.extension.download.download_file(url,light_cnn_model_file)
print
(
'
Downloaded LightCNN model to {}
'
.
format
(
light_cnn_model_file
))
#
print('Downloaded LightCNN model to {}'.format(light_cnn_model_file))
## Loding the pretrained model for ch_0
#
## Loding the pretrained model for ch_0
self
.
load_state_dict
(
self
.
get_model_state_dict
(
light_cnn_model_file
),
strict
=
False
)
#
self.load_state_dict(self.get_model_state_dict(light_cnn_model_file),strict=False)
# copy over the weights to all other layers
...
...
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