Hello World

这个是标题,但是为什么要有标题

这个是子标题,但是为什么要有子标题

2021年4月28日 #

InvalidVersionSpecError: Invalid version spec: =2.7

摘要: xyj@minecraft:~$ conda install numpy Solving environment: failed InvalidVersionSpecError: Invalid version spec: =2.7 最近使用conda遇到了报错,发现conda的issues有人提出 阅读全文

posted @ 2021-04-28 00:16 swuxyj 阅读(19468) 评论(1) 推荐(0) 编辑

2021年4月22日 #

qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin could be initialized.

摘要: 使用pyqt5的程序遇到了这个问题: qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin 阅读全文

posted @ 2021-04-22 10:22 swuxyj 阅读(1297) 评论(0) 推荐(0) 编辑

2021年4月14日 #

匈牙利算法解决两个坐标列表匹配的问题

摘要: 遇到一个问题,有一个坐标列表A:[[10,20],[20,30],[42,41]],和一个坐标列表B:[[14,24],[41,42],[20,31],[42,41]],需要看这两个坐标列表之间谁与谁更加匹配,这时候就可以使用匈牙利算法来实现。 原理不再赘述,直接显示代码: from scipy.o 阅读全文

posted @ 2021-04-14 23:18 swuxyj 阅读(609) 评论(0) 推荐(0) 编辑

2021年4月13日 #

pytorch-summary 针对DenseNet生成摘要报错: AttributeError: 'list' object has no attribute 'size'

摘要: pytorch-summary 针对DenseNet生成摘要报错: AttributeError: 'list' object has no attribute 'size' google搜索这个问题,发现也有人遇到过:https://github.com/sksq96/pytorch-summar 阅读全文

posted @ 2021-04-13 22:22 swuxyj 阅读(2889) 评论(0) 推荐(0) 编辑

2021年4月3日 #

使用sklearn的pca模块fit数据报错“ValueError: array must not contain infs or NaNs”

摘要: 使用sklearn的pca模块fit数据报错“ValueError: array must not contain infs or NaNs”: Traceback (most recent call last): File "xxx.py", line 57, in <module> pca.fi 阅读全文

posted @ 2021-04-03 14:40 swuxyj 阅读(3274) 评论(0) 推荐(0) 编辑

2021年3月29日 #

Nginx+rtmp构建时,localhost/stat显示为空白

摘要: 首先发现stat.xsl的请求是404,发现是因为我的stat.xsl目录定位,攻略里面写的xsl目录,和我这里的目录不一致。 修改目录后,stat.xsl的请求是403 ,查看Nginx日志: 最后将xsl文件移动到Nginx的html目录下,成功请求到xsl文件,restart nginx : 阅读全文

posted @ 2021-03-29 14:19 swuxyj 阅读(920) 评论(0) 推荐(0) 编辑

2021年3月22日 #

opencv-python 视频提取图片帧

摘要: 提前创建好文件夹,注意视频路径和保存路径不能有中文,cv2不支持。 import cv2 cap = cv2.VideoCapture("video1.wmv") if cap.isOpened(): ret, frame = cap.read() else: ret = False i = 0 w 阅读全文

posted @ 2021-03-22 10:33 swuxyj 阅读(180) 评论(0) 推荐(0) 编辑

2021年3月9日 #

pytorch迁移学习

摘要: from torchvision import models model = models.alexnet(pretrained=True) # 提取fc层中固定的参数(这一层的输入节点数目 fc_features = model.fc.in_features # 修改类别为9,(直接对类的属性进行 阅读全文

posted @ 2021-03-09 14:36 swuxyj 阅读(66) 评论(0) 推荐(0) 编辑

2021年1月20日 #

  pandas字符串转成数字的方法

摘要: final_df["xx"] = pd.factorize(final_df["xx"])[0].astype(int) pandas字符串转成数字的方法,老是忘了,一般的map函数类别还得自己指定映射关系,用这个多方便 不过用这个函数的时候,最好是把训练集、验证集、测试集拼到一起,同时映射,不然关 阅读全文

posted @ 2021-01-20 14:47 swuxyj 阅读(6141) 评论(0) 推荐(0) 编辑

2020年9月11日 #

dbf转excel

摘要: 学校的成绩是dbf格式的,要转excel 首先pip安装两个要用到包pandas和dbfread pip install pandas dbfread 然后直接代码: import dbfread import pandas as pd file_name = "xscj (2).dbf" tabl 阅读全文

posted @ 2020-09-11 11:39 swuxyj 阅读(605) 评论(0) 推荐(0) 编辑

导航

Hello World