File tree Expand file tree Collapse file tree 8 files changed +1178
-271
lines changed Expand file tree Collapse file tree 8 files changed +1178
-271
lines changed Original file line number Diff line number Diff line change 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
10
1
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
25
18
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
28
23
24
+ config = DefaultConfigs ()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments