摘要: img = cv2.imread(img_path,-1) print(img.shape) #参数-1为按原通道读入,不写的话默认读入三通道图片,例如(112,112,3) print(img.shape[0])#读入的时图片的高度height print(img.shape[1])#读入的时图片 阅读全文
posted @ 2020-06-03 14:45 像阳光,像春天 阅读(33247) 评论(0) 推荐(1) 编辑
摘要: https://www.bbsmax.com/A/obzbrBwMzE/ 阅读全文
posted @ 2020-06-03 10:47 像阳光,像春天 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: 解决: 在git bash框中任意位置右击==》点击设置菜单中的option==》选择Text页==》Locale项选zh_CN,Character set项选GBK 如此可以解决命令行返回注解中文乱码 参考:https://blog.csdn.net/qwer012345678/article/d 阅读全文
posted @ 2020-06-03 10:45 像阳光,像春天 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 解决LINK : fatal error LNK1158: 无法运行“rc.exe”error: command ‘E:\XXX\VS2015\VC\BIN\x86_amd64\link.exe’ failed with exit status 1158的问题。错误是放置rc.exe和rcdl.dl 阅读全文
posted @ 2020-06-03 10:43 像阳光,像春天 阅读(1170) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/ranjiewen/p/9315232.html 阅读全文
posted @ 2020-06-03 09:16 像阳光,像春天 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 在默认条件下,tensorflow会一次占满所有显存!这对于我们想在同一台机器上跑多个程序不利(后面的程序会报显存不足的错误),可以通过以下方式,设置tensorflow中显存的使用方式 在Python代码中指定GPU import os os.environ["CUDA_DEVICE_ORDER" 阅读全文
posted @ 2020-06-03 08:46 像阳光,像春天 阅读(324) 评论(0) 推荐(0) 编辑