Skip to content

Commit 81adf47

Browse files
committed
update to version-0.1.1
1 parent b1393c9 commit 81adf47

File tree

8 files changed

+1178
-271
lines changed

8 files changed

+1178
-271
lines changed

config.py

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
1-
# -*- coding: utf-8 -*-
2-
# @Time : 2018/7/31 09:41
3-
# @Author : Spytensor
4-
# @File : config.py
5-
# @Email : zhuchaojie@buaa.edu.cn
6-
#====================================================
7-
# 定义所需要的一些参数
8-
#====================================================
9-
from datetime import datetime
101
class DefaultConfigs(object):
11-
#1.str类参数
12-
data_path = "/data2/dockspace_zcj/traffic-sign/train/"
13-
test_path = "/data2/dockspace_zcj/traffic-sign/test/"
14-
model_name = "resnet152"
15-
weights_path = "./logs/{}_params.pkl".format(model_name)
16-
predict_path = "./results/{}".format("%s-lgb_two_three_features"%(datetime.now().strftime("%Y%m%d-%H%M%S")))
17-
#2.数字类特征
18-
img_size = 224
19-
channels = 3
20-
epochs = 120
21-
batch_size = 32
22-
lr = 1e-4
23-
weight_decay = 1e-4
24-
print_freq = 20
2+
#1.string parameters
3+
train_data = "../data/train/"
4+
test_data = ""
5+
val_data = "../data/val/"
6+
model_name = "resnet50"
7+
weights = "./checkpoints/"
8+
best_models = weights + "best_model/"
9+
submit = "./submit/"
10+
logs = "./logs/"
11+
gpus = "1"
12+
13+
#2.numeric parameters
14+
epochs = 40
15+
batch_size = 4
16+
img_height = 224
17+
img_weight = 224
2518
num_classes = 62
26-
gpu = "3"
27-
config = DefaultConfigs()
19+
seed = 888
20+
lr = 1e-3
21+
lr_decay = 1e-4
22+
weight_decay = 1e-4
2823

24+
config = DefaultConfigs()

data_loader.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)