Translate

Showing posts with label issue_solution. Show all posts
Showing posts with label issue_solution. Show all posts

ubuntu系统下/var/log文件夹占用过大的问题

Issue:

        ubuntu系统中 /var/log 文件夹过大

        查看方法:

                cd /var/log
                sudo du -sh *| grep G


Solution:

        su
        cat /dev/null > /var/log/syslog.1
        cat /dev/null > /var/log/syslog
        cat /dev/null > /var/log/journal




AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

 YOLOv5 error:

    AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

Solution:
    把154行左右的内容删掉即可,
    从

    
    变成











QT Issue

Issue:

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/yunyi/anaconda3/envs/label-studio/lib/python3.11/site-packages/cv2/qt/plugins" even though it was found.



solution:

pip uninstall opencv-python
pip install opencv-python-headless

Issue about `GLIBCXX_3.4.29'

Issue:

libstdc++.so.6: version `GLIBCXX_3.4.29' not found

Solution:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test # Ignore if not ubuntu sudo apt-get update sudo apt-get upgrade libstdc++6



Issue about gcc

 Issue when pip install -e . :

ms_deform_attn_cpu.o: file not recognized: file format not recognized

or

Command '['which', 'x86_64-conda_cos6-linux-gnu-c++']' returned non-zero exit status 1.

Solution:

conda install -c anaconda gcc_linux-64 gxx_linux-64

* Because gcc in anaconda doesn't use the same one with ubuntu. It uses a older one.

Install pycocotools

 If has error when you install pycocotools, use:

conda install -c conda-forge pycocotools

Issue when train YOLO5 in docker

 Issue:

    ValueError: SHA could not be resolved, git returned: b''

Solution:

    git status
    git config --global --add safe.directory /workspace/bag_detection/yolov5