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

Error in model retraining parameters #98

Open
langlangmingyue opened this issue Apr 28, 2023 · 0 comments
Open

Error in model retraining parameters #98

langlangmingyue opened this issue Apr 28, 2023 · 0 comments

Comments

@langlangmingyue
Copy link

when running: python train.py --use_validation --dataset_path /root/data1/Mega/ --scene_info_path /root/data1/Mega/output

/root/d2-net-master/lib/loss.py:18: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

The backend was originally set to 'Qt5Agg' by the following code:
File "train.py", line 18, in
from lib.dataset import MegaDepthDataset
File "/root/d2-net-master/lib/dataset.py", line 16, in
from lib.utils import preprocess_image
File "/root/d2-net-master/lib/utils.py", line 1, in
import matplotlib.pyplot as plt
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/site-packages/matplotlib/pyplot.py", line 71, in
from matplotlib.backends import pylab_setup
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/site-packages/matplotlib/backends/init.py", line 16, in
line for line in traceback.format_stack()

matplotlib.use('Agg')
Namespace(batch_size=1, checkpoint_directory='checkpoints', checkpoint_prefix='d2', dataset_path='/root/data1/Mega/', log_file='log.txt', log_interval=250, lr=0.001, model_file='models/d2_ots.pth', num_epochs=10, num_workers=4, plot=False, preprocessing='caffe', scene_info_path='/root/data1/Mega/output', use_validation=True)
hello tomorrow!
hello tomorrow!
[Warning] Checkpoint directory already exists.
[Warning] Log file already exists.
Building the validation dataset...
100%|########################################################################################################################################################| 77/77 [01:22<00:00, 2.13it/s]
0%| | 0/1875 [00:00<?, ?it/s]Exception in thread Thread-2:
Traceback (most recent call last):
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/multiprocessing/resource_sharer.py", line 139, in _serve
signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG))
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/signal.py", line 60, in pthread_sigmask
sigs_set = _signal.pthread_sigmask(how, mask)
ValueError: signal number 32 out of range

Exception in thread Thread-2:
Traceback (most recent call last):
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/multiprocessing/resource_sharer.py", line 139, in _serve
signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG))
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/signal.py", line 60, in pthread_sigmask
sigs_set = _signal.pthread_sigmask(how, mask)
ValueError: signal number 32 out of range

Exception in thread Thread-2:
Traceback (most recent call last):
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/multiprocessing/resource_sharer.py", line 139, in _serve
signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG))
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/signal.py", line 60, in pthread_sigmask
sigs_set = _signal.pthread_sigmask(how, mask)
ValueError: signal number 32 out of range

Exception in thread Thread-2:
Traceback (most recent call last):
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/multiprocessing/resource_sharer.py", line 139, in _serve
signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG))
File "/root/miniconda3/envs/tensorflow1.12/lib/python3.6/signal.py", line 60, in pthread_sigmask
sigs_set = _signal.pthread_sigmask(how, mask)
ValueError: signal number 32 out of range

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