- 博客(5)
- 收藏
- 关注
原创 tensorflow python framework erros invalidArgmentError
问题描述 tensorflow python framework erros invalidArgmentError:connot batch tensors with different shapes in componet 0. First element had shape [227,227,3] and element 19 had shape [227,227,4] 解决办法:数据集图像格式不对;convert(‘RGB’) 解决代码: import numpy as np from PIL im
2021-04-04 20:29:37 309 1
原创 PYQT5 多线程方式,界面显示视频
参考blog:https://www.cnblogs.com/huluwa508/p/10320027.html#%E6%89%93%E5%BC%80%E7%9B%B8%E6%9C%BA 界面展示: 细节请参考以上链接: 1、补充UI.py 文件, 此文件命名为DisplayUI.py // An highlighted block # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'displa
2020-12-16 16:00:41 3381 4
原创 PYQT5 qtdesiner位置
desiner位置,Anconda3 环境下, 在Python虚拟环境envs\虚拟环境名\Lib\site-packages\qt5_applications\Qt\bin\designer.exe ui文件转py: 下面展示一些 内联代码片。 //没又中括号 // A code block pyuic5 -o [xxx.py] [xxxx.ui] // An highlighted block pyuic5 -o [xxx.py] [xxxx.ui] ...
2020-12-07 11:26:15 172
原创 module ‘tensorflow‘ has no attribute ‘flags‘ 解决方案 tensoflow 2.0版本
import tensorflow as tf flags = tf.flags 结果报上述的错了,改成flags = tf.app.flags, 就报module 'tensorflow' has no attribute 'app'的错, 用的是tensorflow 2.0.0版本吗?试试tf.compat.v1.flags 参考链接:https://blog.csdn.net/spring_willow/article/details/80115206 ...
2020-10-23 10:02:46 2475 1
原创 Mnist原始数据集转换为.csv数据集
MNIST数据集转换为MNIST.csv文件 #原始数据集地址: https://blog.csdn.net/qq_23096723/article/details/80982295 原始数据集文件.tg文件解压之后文件夹内容如下: 转换脚本:基于py3 def convert(imgf, labelf, outf, n): #rb,以二进制只读方式从文件开头打开 #w,从文件开头开始写入 f = open(imgf, "rb") o = open(outf, "w")
2020-09-10 10:54:25 671 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人