Some problem of training process
Closed this issue · 0 comments
I have set the following lines in main.py:
25: is_testing =False
training with BIPED
223: TRAIN_DATA = DATASET_NAMES[0]
I set the following settings in the dataset. py file:
'BIPED': {
'img_height': 720, #720 # 1088
'img_width': 1280, # 1280 5 1920
'test_list': 'test_pair.lst',
'train_list': 'train_rgb.lst', # Base augmentation
# 'train_list': 'train_pairB3.lst', # another augmentation
# 'train_list': 'train_pairB5.lst', # Last augmentation
'data_dir': '/share/home/datasets/BIPED/edges', # mean_rgb
'yita': 0.5,
'mean':BIPED_mean
#
},
When I run:python main.py,it appears the following problems:
Training details> ['TEED BIPED+BRIND-trainingdataLoader BRIND light AF -USNet--noBN xav init normal bdcnLoss2+cats2loss +DoubleFusion-3AF, AF sum RL= 0.0008 WD= 0.0002 image size = 300 adjust LR=[4] LRs= [8e-05] Loss Function= BDCNloss2 + CAST-loss2.py Tue Dec 19 15:28:32 2023 trained on BIPED']
Number of GPU's available: 4
Pytorch version: 1.13.1
Trainimage mean: [103.939, 116.779, 123.68, 137.86]
Test image mean: [104.007, 116.669, 122.679, 137.86]
Traceback (most recent call last):
File "main.py", line 524, in
main(args, train_info)
File "main.py", line 408, in main
arg=args
File "/share/home/huangsheng/current/TEED/dataset.py", line 478, in init
self.data_index = self._build_index()
File "/share/home/huangsheng/current/TEED/dataset.py", line 504, in _build_index
files = json.load(f)
File "/share/home/huangsheng/anaconda3/envs/pytorch/lib/python3.7/json/init.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/share/home/huangsheng/anaconda3/envs/pytorch/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/share/home/huangsheng/anaconda3/envs/pytorch/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/share/home/huangsheng/anaconda3/envs/pytorch/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
If you could tell me what the problem is, I would greatly appreciate it.