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-04-04 17:25:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
92fa5f2c25eca304590e2a2eb81f4a472766734a
92fa5f2c
1 parent
f5e2766e
tz utc+9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
code/FAA2/utils.py
code/FAA2/utils.py
View file @
92fa5f2
...
...
@@ -98,8 +98,10 @@ def concat_image_features(image, features, max_features=3):
def
get_model_name
(
args
):
from
datetime
import
datetime
now
=
datetime
.
now
()
from
datetime
import
datetime
,
timedelta
,
timezone
now
=
datetime
.
now
(
timezone
.
utc
)
tz
=
timezone
(
timedelta
(
hours
=
9
))
now
=
now
.
astimezone
(
tz
)
date_time
=
now
.
strftime
(
"
%
B_
%
d_
%
H:
%
M:
%
S"
)
model_name
=
'__'
.
join
([
date_time
,
args
.
network
,
str
(
args
.
seed
)])
return
model_name
...
...
Please
register
or
login
to post a comment