摘要:
修改/opt/opencv/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp,顶端添加: #define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22) #define CODEC_FLAG_GLOBAL_HEADE 阅读全文
摘要:
解决方法: 将pytorch版本降为1.7.0; # 先卸载原有的torch和torchvision pip uninstall torch pip uninstall torchvision # 安装pytorh1.7.0 pip install torch==1.7.0+cu110 torchv 阅读全文
摘要:
from xml.dom.minidom import Document import os import cv2 def makexml(txtPath,xmlPath,picPath): #读取txt路径,xml保存路径,数据集图片所在路径 dict = {'0': "slit_l",#字典对类 阅读全文
摘要:
搜了半天,都是要下载voc_eval.py文件,但该文件只能在python2下运行。以下是python3版本的: # coding:utf-8 import xml.etree.ElementTree as ET import os #import cPickle import _pickle as 阅读全文