Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -98,8 +98,10 @@ def concat_image_features(image, features, max_features=3): | ... | @@ -98,8 +98,10 @@ def concat_image_features(image, features, max_features=3): |
98 | 98 | ||
99 | 99 | ||
100 | def get_model_name(args): | 100 | def get_model_name(args): |
101 | - from datetime import datetime | 101 | + from datetime import datetime, timedelta, timezone |
102 | - now = datetime.now() | 102 | + now = datetime.now(timezone.utc) |
103 | + tz = timezone(timedelta(hours=9)) | ||
104 | + now = now.astimezone(tz) | ||
103 | date_time = now.strftime("%B_%d_%H:%M:%S") | 105 | date_time = now.strftime("%B_%d_%H:%M:%S") |
104 | model_name = '__'.join([date_time, args.network, str(args.seed)]) | 106 | model_name = '__'.join([date_time, args.network, str(args.seed)]) |
105 | return model_name | 107 | return model_name | ... | ... |
-
Please register or login to post a comment