Hello World

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

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

2021年8月25日 #

flask中运行cesium项目,浏览器报text/plain错误,解决方法如下

摘要: 报错: Refused to execute script from 'http://127.0.0.1:5000/3D/lib/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js' because its MIME type ('tex 阅读全文

posted @ 2021-08-25 10:15 swuxyj 阅读(737) 评论(0) 推荐(0)

2021年5月11日 #

overrides报错:TypeError: Highway.forward: `input` must be present

摘要: 代码from allennlp.modules import TimeDistributed 报错了: /usr/local/lib/python3.7/dist-packages/overrides/signature.py in ensure_all_positional_args_define 阅读全文

posted @ 2021-05-11 12:19 swuxyj 阅读(1049) 评论(0) 推荐(1)

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 阅读(20795) 评论(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 阅读(1814) 评论(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 阅读(722) 评论(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 阅读(3057) 评论(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 阅读(3474) 评论(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 阅读(1158) 评论(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 阅读(187) 评论(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 阅读(78) 评论(0) 推荐(0)

导航

Hello World