Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

train_chart.py 训练出错:ValueError: signal number 32 out of range #15

Open
Cm744 opened this issue Jan 3, 2022 · 0 comments
Open

Comments

@Cm744
Copy link

Cm744 commented Jan 3, 2022

_loading all datasets...
using 1 threads
loading from cache file: /home/cmvmlsky/DeepRule/data/bardata_1031/cache/chart_train2019.pkl
loading annotations into memory...
/home/cmvmlsky/DeepRule/data/bardata_1031/bar/annotations/instancesBar(1031)_train2019.json
Done (t=13.22s)
creating index...
index created!
loading from cache file: /home/cmvmlsky/DeepRule/data/bardata_1031/cache/chart_val2019.pkl
loading annotations into memory...
/home/cmvmlsky/DeepRule/data/bardata_1031/bar/annotations/instancesBar(1031)_val2019.json
Done (t=0.30s)
creating index...
index created!
system config...
{'batch_size': 26,
'cache_dir': '/home/cmvmlsky/DeepRule/data/bardata_1031/cache',
'chunk_sizes': [5, 7, 7, 7],
'config_dir': './config',
'data_dir': '/home/cmvmlsky/DeepRule/data/bardata_1031',
'data_rng': RandomState(MT19937) at 0x7FE76B4DD150,
'dataset': 'Bar',
'decay_rate': 10,
'display': 5,
'learning_rate': 0.00025,
'max_iter': 50000,
'nnet_rng': RandomState(MT19937) at 0x7FE6DEA79BA0,
'opt_algo': 'adam',
'prefetch_size': 5,
'pretrain': None,
'result_dir': './results',
'sampling_function': 'kp_detection',
'snapshot': 5000,
'snapshot_name': 'CornerNetPureBar',
'stepsize': 45000,
'tar_data_dir': 'cls',
'test_split': 'testchart',
'train_split': 'trainchart',
'val_iter': 100,
'val_split': 'valchart',
'weight_decay': False,
'weight_decay_rate': 1e-05,
'weight_decay_type': 'l2'}
db config...
{'ae_threshold': 0.5,
'border': 128,
'categories': 1,
'data_aug': True,
'gaussian_bump': True,
'gaussian_iou': 0.3,
'gaussian_radius': -1,
'input_size': [511, 511],
'lighting': True,
'max_per_image': 100,
'merge_bbox': False,
'nms_algorithm': 'exp_soft_nms',
'nms_kernel': 3,
'nms_threshold': 0.5,
'output_sizes': [[128, 128]],
'rand_color': True,
'rand_crop': True,
'rand_pushes': False,
'rand_samples': False,
'rand_scale_max': 1.4,
'rand_scale_min': 0.6,
'rand_scale_step': 0.1,
'rand_scales': array([0.6, 0.7, 0.8, 0.9, 1. , 1.1, 1.2, 1.3]),
'special_crop': False,
'test_scales': [1],
'top_k': 100,
'weight_exp': 8}
len of db: 158140
building model...
module_file: models.CornerNetPureBar
use kp pure
total parameters: 198592652
start prefetching data...
setting learning rate to: 0.00025
training start...
shuffling indices...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/cmvmlsky/miniconda3/envs/DeepRule/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/cmvmlsky/miniconda3/envs/DeepRule/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/cmvmlsky/miniconda3/envs/DeepRule/lib/python3.6/multiprocessing/resource_sharer.py", line 139, in _serve
signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG))
File "/home/cmvmlsky/miniconda3/envs/DeepRule/lib/python3.6/signal.py", line 60, in pthread_sigmask
sigs_set = _signal.pthread_sigmask(how, mask)
ValueError: signal number 32 out of range

['read.txt']
^M 0%| | 0/50000 [00:00<?, ?it/s]
534,1 Bot_

Could you please help fix this error?
usually this error is because the num_worker is too large. However, in your codes I cannot see regular dataloader and num_worker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant