自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

yufengxx的博客

活学活用

  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 【无标题】Linux numpy错误

Traceback (most recent call last): File "tools/infer_rec.py", line 19, in <module> import numpy as npImportError: No module named numpy卸载旧版本用此命令安装:sudo apt-get install python-numpy

2022-03-24 04:33:19 1063

原创 AssertionError: In PaddlePaddle 2.x, we turn on dynamic graph mode by default, and ‘data()‘ is only

AssertionError: In PaddlePaddle 2.x, we turn on dynamic graph mode by default, and 'data()' is only supported in static graph mode. So if you want to use this api, please call 'paddle.enable_static()' before this api to enter static graph mode.此问题解决之需要在运

2021-09-21 22:39:22 759

原创 python3 已知两点坐标算角度

import mathdef azimuthangle(x1, y1, x2, y2): """ 已知两点坐标计算角度 - :param x1: 原点横坐标值 :param y1: 原点纵坐标值 :param x2: 目标点横坐标值 :param y2: 目标纵坐标值 """ angle = 0.0 dx = x2 - x1 dy = y2 - y1 if x2 == x1: angle = math.pi.

2021-09-05 05:51:23 5282 4

原创 python3 计算点在圆弧的相对位置

import mathdef xymathordinate(x1, y1, r, angle): """ 已知半径,角度计算点在圆的相对位置坐标 - :param x1: 原点横坐标值 :param y1: 原点纵坐标值 :param r: 圆半径 :param angle: 相对原点的角度 """ (x2, y2) = (x1 + r * math.cos(angle), y1 + r * math.sin(angle)) return .

2021-09-05 05:47:34 321

原创 VOC xml格式转YOLO格式 python

import xml.etree.ElementTree as ETimport pickleimport osfrom os import listdir, getcwdfrom os.path import joinimport sys​sets=[('2018', 'train'), ('2018', 'val')]​classes = ["a", "b", "c", "d"]​# soft link your VOC2018 under hereroot_dir = sys.

2021-09-02 06:04:30 86

原创 pycocotools无法安装解决

去https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/下载工具安装完然后选用c++,在单个组件搜索build选取使用于c++生成工具在安装pip install pycocotools -https://pypi.mirrors.ustc.edu.cn/simple/

2021-09-02 00:45:07 379

原创 pip国内镜像源

pip国内的一些镜像  阿里云 http://mirrors.aliyun.com/pypi/simple/  中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/  豆瓣(douban) http://pypi.douban.com/simple/  清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/  中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/...

2021-09-02 00:33:22 69

易语言x64内存读写支持库3.0.zip

易语言x64内存读写支持库3.0.zip

2021-09-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除