RuntimeError: CUDA error: initialization error
今天更换了一下卷积就这样了,还不清楚具体的原因,推测是pytorch多进程的问题。不过解决方案已经有了。 直接在主程序的开始加入下面这两句话即可: import multiprocessing as mp mp.set_start_meth […]
深度学习中为什么要用batch?
为什么要用batch呢?不光是为了加速。 梯度下降是对所有的样本进行求梯度,而随机梯度下降法是对单个样本求梯度,因此梯度下降的单个样本之间是没有关联的,而随机梯度下降的x(i)是依赖于x(i-1)的,即w(i) = w(i-1) – α(单 […]
[mcj]利用NFS将远程服务器目录mount到本地
为了解决某些网盘软件(如可道)禁止使用外部文件夹的问题,于是有了这个方案,利用NFS实现。
1 |
sudo mount -t nfs 172.25.17.25:/home/mcj/bigdisk/anzhuangbao/share /www/wwwroot/down.dulina.cn/data/User/admin/home/大文件共享 |
问题解决: 问题1:利用NFS mount远程目录之后文件夹变成只读的解决办法 兄 […]
Setup can’t find or validate an installation file. Please try reinstall Office from your installation source, or if you install from a downloaded package,please re-install. if you continue to have problems,please contact Microsoft or your system adminstrator
最近在用M1芯片的MacBook pro安装visio的时候提示: Setup can’t find or validate an installation file. Please try reinstall Office from yo […]
如何查看固态硬盘的使用寿命和使用时长
首先安装homebrew,不知道怎么安装的见: homebrew就类似ubuntu里的apt,装软件贼好使。 安装之后,再安装一个小工具: brew install smartmontools 然后打开终端,查看一下SSD的设备标签代码: […]
macOS间歇性卡顿问题
今天偶然发现的,macOS系统下,比如打字的时候,无法连续输入,基本上输入几个字就会卡顿几秒,打开软件啥的也一样。 奇怪的是CPU占用率非常低,磁盘读写也非常低。 1. onedrive 在我一个应用一个应用的退出之后发现,原来是onedr […]
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
mmdet运行时报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Traceback (most recent call last): File "tools/train.py", line 13, in <module> from mmdet.apis import set_random_seed, train_detector File "/home/ubuntu/bigdisk/part2/iterdet1.2/mmdet/apis/__init__.py", line 1, in <module> from .inference import (async_inference_detector, inference_detector, File "/home/ubuntu/bigdisk/part2/iterdet1.2/mmdet/apis/inference.py", line 9, in <module> from mmdet.core import get_classes File "/home/ubuntu/bigdisk/part2/iterdet1.2/mmdet/core/__init__.py", line 5, in <module> from .mask import * # noqa: F401, F403 File "/home/ubuntu/bigdisk/part2/iterdet1.2/mmdet/core/mask/__init__.py", line 2, in <module> from .structures import BitmapMasks, PolygonMasks File "/home/ubuntu/bigdisk/part2/iterdet1.2/mmdet/core/mask/structures.py", line 5, in <module> import pycocotools.mask as maskUtils ModuleNotFoundError: No module named 'pycocotools' |
原因是numpy版本太低,安装一下高版本的numpy即可: pip install numpy==1.20.1 本文最后更新于2022年5月2日,已超 […]
如何批量删除VOC数据集中某个类别
按照下面的格式,一个一个的删除:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 批量移除xml标注中的某一个类别标签 import xml.etree.cElementTree as ET import os path_root = ['VOC2007/Annotations'] CLASSES = ["crowd"] # 填入想要删去的类别,每次删去一个类 for anno_path in path_root: xml_list = os.listdir(anno_path) for axml in xml_list: path_xml = os.path.join(anno_path, axml) tree = ET.parse(path_xml) root = tree.getroot() print("root",root) for child in root.findall('object'): name = child.find('name').text print("name",name) if name in CLASSES: # 这里可以反向写,不在Class的删掉 root.remove(child) # 重写 tree.write(os.path.join('VOC2007/Annotations_new', axml)) # 记得新建annotations_new文件夹 |
本文最后更新于2022年5月1日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
一些机器视觉领域常用的期刊或者会议的缩写
期刊: TMI IEEE Trans. Med. Imaging IEEE Transactions on Medical Imaging TIP IEEE Trans. Image Process. IEEE Transactions […]
Mathtype如何在64位macOS系统中使用?
自从macOS升级到10.15版本之后,只支持64位软件,因此像Mathtype这种软件就无法使用了。 因为Mathtype不支持64位的macOS系统,另外,貌似官方短时间也不打算出一个正式的版本来支持,搞不懂他们是怎么想的。 目前唯一的 […]