Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jiangxin Dong
SVMAP
Commits
cef151d5
Commit
cef151d5
authored
Jun 17, 2021
by
Jiangxin Dong
Browse files
Upload New File
parent
3add120e
Changes
1
Show whitespace changes
Inline
Side-by-side
main.py
0 → 100644
View file @
cef151d5
import
torch
import
data
import
model
import
loss
from
option
import
args
from
trainer_vd
import
Trainer_VD
from
logger
import
logger
torch
.
manual_seed
(
args
.
seed
)
chkp
=
logger
.
Logger
(
args
)
print
(
"Spatially-Variant MAP Model"
)
loader
=
data
.
Data
(
args
)
model
=
model
.
Model
(
args
,
chkp
)
loss
=
loss
.
Loss
(
args
,
chkp
)
if
not
args
.
test_only
else
None
t
=
Trainer_VD
(
args
,
loader
,
model
,
loss
,
chkp
)
while
not
t
.
terminate
():
t
.
train
()
t
.
test
()
chkp
.
done
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment