
问题
文章平均质量分 55
胡侃有料
流水不争先,争的是滔滔不绝
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【PCL】350A4D40]vtkOpenGLPolyDataMapper:328 WARN| vtkOpenGLPolyDataMapper::SetGeometryShaderCode was
every blog every motto: You can do more than you think.https://blog.youkuaiyun.com/weixin_39190382?type=blog350A4D40]vtkOpenGLPolyDataMapper:328 WARN| vtkOpenGLPolyDataMapper::SetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future v原创 2024-07-26 15:26:58 · 297 阅读 · 0 评论 -
【onnx】onnxruntime-gpu无法使用问题
onnxruntime-gpu无法使用。原创 2024-07-09 15:05:33 · 2906 阅读 · 0 评论 -
【ubuntu】安装(升级)显卡驱动,黑屏|双屏无法使用问题解决方法
ubuntu 安装(升级)显卡驱动,黑屏|双屏无法使用问题解决方法由于项目需要,对显卡驱动进行升级。升级完就黑屏。。。。,双屏也只能显示一个。。。。原创 2024-07-01 17:24:27 · 1543 阅读 · 0 评论 -
ImportError: cannot import name ‘model_urls‘ from ‘torchvision.models.resnet‘
every blog every motto: You can do more than you think.https://blog.youkuaiyun.com/weixin_39190382?type=blog如下代码出现问题:报错:解决办法:原创 2024-06-15 17:50:06 · 1107 阅读 · 0 评论 -
正在连接到 objects.githubusercontent.com
下载记录。原创 2023-12-15 21:32:47 · 2102 阅读 · 0 评论 -
mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp-7c85b1e2.so.1 lib
记录。原创 2023-11-22 15:35:44 · 504 阅读 · 0 评论 -
虚拟环境中使用的Python不是当前虚拟环境的,解决方法
在虚拟环境中使用的python和pip不是虚拟环境的pip安装不到当前的虚拟环境中…等解决方法。原创 2023-11-08 15:58:15 · 891 阅读 · 0 评论 -
AttributeError: module ‘lib‘ has no attribute ‘X509_V_FLAG_CB_ISSUER_CHECK‘
报错解决记录。原创 2023-11-07 17:27:24 · 960 阅读 · 0 评论 -
【docker】中文无法显示输入等问题解决方法
docker 路径中文不显示,无法输入中文问题解决方法。原创 2023-08-23 14:31:49 · 1481 阅读 · 0 评论 -
【ubuntu|内核】ubuntu 22.04修改内核为指定版本
ubuntu 22.04 安装指定内核。原创 2023-07-27 17:54:14 · 8854 阅读 · 2 评论 -
【交点】直线与多边形相交显示
python 求直线与多边形交点并显示。原创 2023-07-19 15:43:36 · 1516 阅读 · 4 评论 -
【中心】不规则多边形中心、形心、外接矩形中心计算方法
不规则多边形 中心、形心、外接矩形中心 计算方法。原创 2023-07-18 15:22:49 · 3602 阅读 · 0 评论 -
findfont: Generic family ‘sans-serif‘ not found because none of the following families were found: S
错误记录。原创 2023-07-18 14:46:57 · 5654 阅读 · 1 评论 -
【形心】不规则多边形形心计算方法(含面积计算)
不规则多边形形心计算若干方法小结这里以凹多边形为例,方便排查所计算坐标不在多边形之外。原创 2023-07-18 10:21:23 · 6015 阅读 · 0 评论 -
unbuntu 22.04 安装和卸载企业微信
记录有关在ubuntu22.04上安装和卸载企业微信 以及企业微信无法打开问题处理。原创 2023-07-11 10:34:38 · 2989 阅读 · 3 评论 -
Manager isn‘t available; ‘auth.User‘ has been swapped for ‘mm.UserInfo‘
django中自定义用户出现的问题记录。原创 2023-02-24 20:13:24 · 1276 阅读 · 0 评论 -
【mmcv】安装记录
mmcv 安装记录。原创 2023-01-28 11:55:45 · 445 阅读 · 0 评论 -
libpng error: Write Error
离大普错误。原创 2023-01-07 16:32:56 · 1919 阅读 · 2 评论 -
“Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)“)
记录。原创 2022-12-14 21:50:54 · 299 阅读 · 0 评论 -
【django】RuntimeError: populate() isn‘t reentrant unable to load app 0 (mountpoint=‘‘) (callable not
错误记录。原创 2022-11-07 22:21:18 · 758 阅读 · 0 评论 -
【django】部署报错记录
django 部署报错记录原创 2022-10-16 22:59:27 · 618 阅读 · 0 评论 -
ERROR: URL ‘s3://‘ is supported but requires these missing dependencies: [‘s3fs‘]. To install dvc wi
dvc错误记录原创 2022-09-08 11:32:58 · 214 阅读 · 0 评论 -
*** java.lang.instrument ASSERTION FAILED ***: “result“ with message agent load/premain call failed
错误记录原创 2022-08-28 10:20:57 · 6318 阅读 · 0 评论 -
qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in “/home/w/anaconda3/lib/python3.9/site-
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/w/anaconda3/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.This application failed to start because no Qt platform plugin could be initialized. Reinstalling the app原创 2022-08-25 10:12:11 · 4946 阅读 · 3 评论 -
error: (-215:Assertion failed) p.checkVector(2, CV_32S) >= 0 in function ‘fillPoly‘
问题记录原创 2022-08-18 14:12:56 · 1392 阅读 · 2 评论 -
ImportError: attempted relative import beyond top-level package
ImportError: attempted relative import beyond top-level package原创 2022-08-16 11:39:17 · 4245 阅读 · 0 评论 -
【ubuntu】打不开设置问题解决
ubuntu打不开设置问题解决方案原创 2022-08-12 12:29:23 · 5127 阅读 · 0 评论 -
ERROR: unexpected error - Failed to connect to proxy URL: “http://127.0.0.1:8080/“
记录使用git遇到的问题原创 2022-07-27 10:21:45 · 1559 阅读 · 0 评论 -
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 2, 1
every blog every motto: You can do more than you think.0. 前言记录1. 正文报错:ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 2, 1, 1])解决办法:pytorch中,模型训练是BatchNormalization的batch不能为单数,即:(1,4,30,30)错(2,4,30原创 2021-12-14 20:50:55 · 1746 阅读 · 0 评论 -
ImportError: cannot import name ‘get_config‘ from ‘tensorflow.python.eager.context‘
every blog every motto: You can do more than you think.0. 前言报错记录1. 正文运行程序,报错如下:ImportError: cannot import name ‘get_config’ from ‘tensorflow.python.eager.context’ (F:\public\anconda\envs\pytorch17\lib\site-packages\tensorflow\python\eager\context.py原创 2021-09-09 11:06:50 · 14973 阅读 · 2 评论 -
AttributeError: module ‘matplotlib‘ has no attribute ‘image‘
every blog every motto: We would rather reuse an active dwarf than a sleeping giant.0. 前言记录1. 正文报错AttributeError: module 'matplotlib' has no attribute 'image'代码如下import matplotlibprint(matplotlib.__version__)y_true = matplotlib.image.imread("./原创 2021-03-28 16:07:58 · 3525 阅读 · 1 评论 -
RuntimeError: CUDA error: device-side assert triggered
every blog every motto: Just live your life cause we don’t live twice.0. 前言小记,pytorch 和tensorflow损失函数介绍1. 正文1.1 原因c_loss = nn.CrossEntropyLoss()loss0 = c_loss(d0, labels_v.long())报错的原因是,在pytorch中做损失函数计算时,标签为(batch,height,width),如果类别为10类,那么其中的值应该 为原创 2021-03-06 17:12:13 · 16093 阅读 · 3 评论 -
【pytorch】RuntimeError: 1only batches of spatial targets supported (3D tensors) but got targets of si
every blog every motto: Just live your life cause we don’t live twice.0. 前言在用pytorch训练网络,计算损失时,遇到错误1. 正文1.1 错误回顾RuntimeError: 1only batches of spatial targets supported (3D tensors) but got targets of size: : [2, 10, 256, 256]上面显示,希望传入一个3维Tensor,结果原创 2021-03-06 10:38:39 · 31049 阅读 · 66 评论 -
【Tensorflow/keras】KeyError: ‘loss‘
every blog every motto: Just live your life cause we don’t live twice.0. 前言错误记录,奇怪的报错,奇怪的解决方法。1. 正文1.1 报错return self.filepath.format(epoch=epoch + 1, **logs)KeyError: 'loss'1.2 解决方法batch_size 调小点...原创 2021-02-08 20:14:15 · 2283 阅读 · 2 评论 -
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: ../user_data\co
every blog every motto: You will never know unless you try0. 前言有关tensorboard遇到的问题废话: 之前明明好好的,不知道今天为啥抽风了。1. 正文部分代码如下tensorboard_dir = os.path.join('../', 'user_data', 'code2_output', 'tensorboard')if not os.path.exists(tensorboard_dir): os.makedi原创 2021-02-06 22:15:03 · 5387 阅读 · 1 评论 -
【xpath】多个xpath Element对象,提取结果是一样的
every blog every motto: What doesn’t kill you makes you stronger.0. 前言用xpath提取,获取多个element对象,循环遍历提取其中内容结果是一样的,记录。1. 正文1.1 方法一:comment_xpath = html.xpath('//div[@node-type="root_comment"]')# 遍历每个评论块for ele in comment_xpath: # t = etree.tostring(e原创 2021-01-14 20:22:46 · 2470 阅读 · 7 评论 -
【python|opencv】读取/保存图片,路径含有中文问题解放方案(opencv 无法读取/保存图片)
every blog every motto: You can do more than you think.0. 前言解决opencv 读取/保存 图片 路径中含有中文问题1. 正文1.1 读取def _read_image(image_path): """读取(中文路径的图片)图片,save_path:路径""" cv_img = cv.imdecode(np.fromfile(image_path, dtype=np.uint8), -1) return cv_im原创 2020-12-21 10:17:44 · 861 阅读 · 0 评论 -
【python|opencv】cv2.imread返回None,无法正确读取图片
every blog every motto: You can do more than you think.0. 前言之前遇到一个问题,今天又再一次遇到,记之。1. 正文1.1 问题在使用python调用opencv时,无法读取图片,返回结果为None,如下图所示:1.2 解决办法原因是所读取的图片还有中文,所以不能读取。进行如下改进:import osimport cv2 as cvimport numpy as npdef cv_imread(file_path):原创 2020-12-04 20:21:05 · 12717 阅读 · 0 评论 -
tensorflow.python.framework.errors_impl.NotFoundError: Could not find valid device for node.
every blog every motto: You can do more than you think.0. 前言测试代码报错,小记1. 正文测试如下代码,import osos.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'import tensorflow as tfimport numpy as nptensor = tf.constant(np.arange(12).reshape((3, 4,1))) print(tensor)te原创 2020-10-30 10:36:54 · 1882 阅读 · 0 评论 -
ValueError: This model has not yet been built. Build the model first by calling `build()` or calling
every blog every motto: You can do more than you think.0. 前言用子类API(Subclassing API)构建模型时出现的问题,小结。说明: 有关子类API的部分问题探讨,参见上节1. 正文对于构建完以后的模型,我们往往会打印其网络结构,一方面:验证模型是否通顺,另一方面,检查模型特征图变化。,当我们使用model.summary()时出现如下错误。ValueError: This model has not yet been bui原创 2020-10-28 09:17:34 · 13748 阅读 · 8 评论