python基础
人生苦短,我用python
wangmeili@
淦就是了
展开
-
RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please ......
深度学习 fasterrcnn原创 2022-09-19 21:06:16 · 2481 阅读 · 1 评论 -
自己整理的红外无人机数据集(voc格式)
整理的xml格式数据集原创 2022-09-18 20:09:57 · 2212 阅读 · 6 评论 -
ValueError: numpy.ndarray size changed, may indicate binary incompatibility.
python包错误原创 2022-06-12 14:45:47 · 1099 阅读 · 0 评论 -
pydensecrf库安装(ubuntu 20.04 python 3.7)
pydensecrf库安装原创 2022-06-08 16:02:30 · 1792 阅读 · 2 评论 -
jupyter notebook启动错误
jupyter notebook启动原创 2022-06-06 09:44:00 · 1124 阅读 · 1 评论 -
ubuntu系统运行 labelme 命令报错
报错如下:qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plu原创 2022-05-05 19:06:26 · 426 阅读 · 0 评论 -
python基础——字典
1、字典的增、删、改dic={'张兴':100,'James':101,'王根基':70}print('James' in dic)#Truedel dic['张兴']#删除一个元素print(dic)#{'James': 101, '王根基': 70}dic['李四']=99#增加一个元素print(dic)#{'James': 101, '王根基': 70, '李四': 99}dic['James']=200#修改print(dic)#{'James': 200, '王根基'.原创 2021-09-20 22:10:15 · 100 阅读 · 0 评论 -
python基础01
1、print(11//2) 结果为5 print(2**3)结果为8 print(-9//4)结果为-3 (-2.25向上取整) 2、a,b=20,30 print('a大于b吗?',a>b) 输出结果:a大于b吗? False r=range(10) print(list(r)) [0,1,2,3,4,5,6,7,8,9] r=range(1,10) print(list(r)) [1,2,3,...原创 2021-09-19 17:02:47 · 762 阅读 · 0 评论 -
TensorFlow框架—实现简单线性回归
import tensorflow as tfdef Linear_regression(): """ 实现一个线性回归 """ #1 准备数据 x = tf.random_normal(shape=[100,1]) y_true = tf.matmul(x,[[0.8]])+0.7 #2 构建模型 #定义模型参数 用 变量 若设置参数trainable=False,则训练过程中参数值不变 weight = tf.Variable(.原创 2021-08-24 16:21:40 · 146 阅读 · 0 评论 -
安装Polygon库
在pycharm中安装Polygon会报错失败,在cmd中安装Polygon会显示无这个版本,就算输入命令pip install Polygon3或者pip install Polygon3也会安装失败,该怎么办呢??? 敲黑板了,赶快拿小本本记下来!!! 首先打开网址https://www.lfd.uci.edu/~gohlke/pythonlibs/ 里面有很多python依赖包的whl文件,找到Polygon包,根据你环境的pytho...原创 2021-08-16 20:50:54 · 9906 阅读 · 6 评论 -
如何在pycharm中引入相同目录下的模块
比如在data_provider中引入config和config中的seed:错误示例:from config import configfrom config import seed正确示例:from crnn.config import configfrom crnn.config import seeed原因: PyCharm工程当前目录在上一层,所以需要从目录开始引用...原创 2021-07-26 19:10:29 · 436 阅读 · 0 评论