Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KidneyStainTranslation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Labooratory AI
KidneyStainTranslation
Commits
07f20ca1
Unverified
Commit
07f20ca1
authored
4 years ago
by
NBouteldja
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update test.py
parent
30dd396c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test.py
+1
-1
1 addition, 1 deletion
test.py
with
1 addition
and
1 deletion
test.py
+
1
−
1
View file @
07f20ca1
...
@@ -45,7 +45,7 @@ logger = log.getLogger()
...
@@ -45,7 +45,7 @@ logger = log.getLogger()
logger
.
info
(
'
Script call arguments are:
\n\n
'
+
'
'
.
join
(
sys
.
argv
[
1
:])
+
'
\n\n
'
)
logger
.
info
(
'
Script call arguments are:
\n\n
'
+
'
'
.
join
(
sys
.
argv
[
1
:])
+
'
\n\n
'
)
segModel
=
Custom
(
input_ch
=
3
,
output_ch
=
8
,
modelDim
=
2
)
segModel
=
Custom
(
input_ch
=
3
,
output_ch
=
8
,
modelDim
=
2
)
segModel
.
load_state_dict
(
torch
.
load
(
'
/homeStor1/nbouteldja/Results_ActivePAS/custom_train_val_test_e500_b6_r0.001_w1e-05_516_640_32_RAdam_instance_1deeper_Healthy_UUO_Adenine_Alport_IRI_NTN_fewSpecies_fewHuman_Background_+-1range_X/Model/finalM
odel.pt
'
,
map_location
=
lambda
storage
,
loc
:
storage
))
segModel
.
load_state_dict
(
torch
.
load
(
'
<path-to-segmentation-m
odel.pt
>
'
,
map_location
=
lambda
storage
,
loc
:
storage
))
segModel
.
eval
()
segModel
.
eval
()
segModel
=
segModel
.
to
(
device
)
segModel
=
segModel
.
to
(
device
)
...
...
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