-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
41 lines (31 loc) · 905 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import os, getpass
import os.path as osp
import numpy as np
import argparse
import sys
def add_path(path):
if path not in sys.path:
sys.path.insert(0, path)
root_dir = '.'
add_path(osp.join(root_dir, 'lib'))
add_path(osp.join(root_dir, 'util'))
add_path(osp.join(root_dir, 'tools'))
class Config:
imgDir = '/root/autodl-tmp/Crowdhuman/train'
imgDir2 = '/root/autodl-tmp/Crowdhuman/val'
output_dir = 'DH_head'
snapshot_dir = osp.join(output_dir, 'model_dump')
eval_dir = osp.join(output_dir, 'eval_dump')
train_image_folder, val_image_folder = imgDir, imgDir2
train_json = r'train.json'
eval_json = r'val.json'
anno_file = r'crowdhuman_val.odgt'
train_file = r'crowdhuman_train.odgt'
asymmetrical_low = 0.1
score_thr = 1
ign_thr = 0.7
watershed = 5
iou_thr = 0.4
floor_thr = 0.05
iter_nums = 1
config = Config()