WongKinYiu / yolor

implementation of paper - You Only Learn One Representation: Unified Network for Multiple Tasks (https://arxiv.org/abs/2105.04206)
GNU General Public License v3.0
1.98k stars 524 forks source link

ERROR when Training: ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found #127

Closed chandralegend closed 2 years ago

chandralegend commented 2 years ago

Describe your issue.

I am Trying the https://github.com/roboflow-ai/yolor train.py. after running the following command on yolor directory I receive this error.

Reproducing Code Example

!python3 train.py --batch-size 8 --img 416 416 --data {dataset.location}/data.yaml --cfg cfg/yolor_p6.cfg --weights 'yolor_p6.pt' --device 0 --name yolor_p6 --hyp '/data/hyp.scratch.1280.yaml' --epochs 50

Error message

Traceback (most recent call last):
  File "train.py", line 23, in <module>
    import test  # import test.py to get mAP after each epoch
  File "/home/jupyter/yolor/test.py", line 18, in <module>
    from utils.plots import plot_images, output_to_target
  File "/home/jupyter/yolor/utils/plots.py", line 17, in <module>
    from scipy.signal import butter, filtfilt
  File "/opt/conda/lib/python3.7/site-packages/scipy/signal/__init__.py", line 294, in <module>
    from ._max_len_seq import max_len_seq
  File "/opt/conda/lib/python3.7/site-packages/scipy/signal/_max_len_seq.py", line 8, in <module>
    from ._max_len_seq_inner import _max_len_seq_inner
ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /opt/conda/lib/python3.7/site-packages/scipy/signal/_max_len_seq_inner.cpython-37m-x86_64-linux-gnu.so)

SciPy/NumPy/Python version information

1.7.1 1.19.5 sys.version_info(major=3, minor=7, micro=10, releaselevel='final', serial=0)

WongKinYiu commented 2 years ago

maybe apt install -y zip htop screen libgl1-mesa-glx https://github.com/WongKinYiu/yolor#installation

if not, check your soft link of glibcxx*.

chandralegend commented 2 years ago

This worked thank you very much