Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design2
/
2016104167
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조현아
2020-03-31 21:52:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75bcfceec86231c1e4d0546b02c1d699341bfed3
75bcfcee
1 parent
aa191bf0
get GPU name
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
code/FAA2/fast_auto_augment.py
code/FAA2/fast_auto_augment.py
View file @
75bcfce
...
...
@@ -64,8 +64,8 @@ def train_child(args, model, dataset, subset_indx, device=None):
_train_res
=
train_step
(
args
,
model
,
optimizer
,
scheduler
,
criterion
,
batch
,
step
,
None
,
device
)
if
step
%
args
.
print_step
==
0
:
print
(
'
\n
[+] Training step: {}/{}
\t
Elapsed time: {:.2f}min
\t
Learning rate: {}
\t
Device: {}'
.
format
(
step
,
args
.
max_step
,(
time
.
time
()
-
start_t
)
/
60
,
optimizer
.
param_groups
[
0
][
'lr'
],
device
))
print
(
'
\n
[+] Training step: {}/{}
\t
Elapsed time: {:.2f}min
\t
Learning rate: {}
\t
Device
name
: {}'
.
format
(
step
,
args
.
max_step
,(
time
.
time
()
-
start_t
)
/
60
,
optimizer
.
param_groups
[
0
][
'lr'
],
torch
.
cuda
.
get_device_name
(
0
)
))
print
(
' Acc@1 : {:.3f}
%
'
.
format
(
_train_res
[
0
]
.
data
.
cpu
()
.
numpy
()[
0
]
*
100
))
print
(
' Acc@5 : {:.3f}
%
'
.
format
(
_train_res
[
1
]
.
data
.
cpu
()
.
numpy
()[
0
]
*
100
))
...
...
Please
register
or
login
to post a comment