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
!50
WIP: Lightning
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
WIP: Lightning
light
into
master
Overview
8
Commits
4
Pipelines
3
Changes
14
4 unresolved threads
Hide all comments
Open
Tiago de Freitas Pereira
requested to merge
light
into
master
3 years ago
Overview
8
Commits
4
Pipelines
3
Changes
6
4 unresolved threads
Hide all comments
Expand
Working on a training mechanism using pytorch lightning
Still a WIP
0
0
Merge request reports
Compare
version 1
version 2
a181ea80
3 years ago
version 1
cc839af2
3 years ago
master (base)
and
latest version
latest version
3d3fe179
4 commits,
3 years ago
version 2
a181ea80
3 commits,
3 years ago
version 1
cc839af2
2 commits,
3 years ago
Show latest version
6 files
+
54
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
bob/learn/pytorch/architectures/iresnet.py
+
6
−
1
Options
@@ -183,7 +183,12 @@ class IResNet(nn.Module):
def
_iresnet
(
arch
,
block
,
layers
,
pretrained
,
progress
,
**
kwargs
):
model
=
IResNet
(
block
,
layers
,
**
kwargs
)
if
pretrained
:
raise
ValueError
()
map_location
=
(
torch
.
device
(
"
cuda
"
)
if
torch
.
cuda
.
is_available
()
else
torch
.
device
(
"
cpu
"
)
)
state_dict
=
torch
.
load
(
pretrained
,
map_location
=
map_location
)
model
.
load_state_dict
(
state_dict
)
return
model
Loading