运行错误
Daweixi
这个作者很懒,什么都没留下…
展开
-
error: Could not find suitable distribution for Requirement.parse(‘tf-slim>=1.1‘)
笔者在部署windows 版本tensorflow object detection API的时候,参照如下博客:https://blog.csdn.net/qq_40434140/article/details/88083142这篇博客的步骤已经十分得求稳了,但在最后一步还是出现了如标题所示得问题。解决方法其实已经在报错中有提示了。看上面第三行,有tf-slim的地址:https://pypi.python.org/simple/tf-slim/打开之后只有两个链接,英文再不好的人原创 2020-09-25 10:07:36 · 7657 阅读 · 0 评论 -
findContours,计算轮廓面积时出现not enough values to unpack
网上找到一些代码出现了not enough values to unpack,excpet3,get2这样的错误,问题出在返回值太多了。问题在于opencv2的返回值是两个,opencv3的返回值是3个。所以同学们要弄清楚自己用的是2还是3函数原型:cv2.findContours(image,mode,method[,contours[,hierarchy[,offset]]]...原创 2019-08-26 13:57:34 · 638 阅读 · 0 评论 -
python中出现invalid syntax报错
class Solution: def myPow(self, x: float, n: int) -> float: if x==0: return 0 if n>0: return x*(self.myPow(x,n-1)) if n==0: return 1 if n<0: return self.myPow(1/x.原创 2020-05-11 10:23:04 · 870 阅读 · 0 评论 -
ffmpeg:RuntimeError: No MovieWriters available!
参考了以下两篇博文:https://blog.csdn.net/weixin_39278265/article/details/84147458https://blog.csdn.net/mys_mys/article/details/99646476具体解决:第一步:从下面链接下载来ffmpeg,然后解压http://ffmpeg.zeranoe.com/builds/h...原创 2020-03-16 13:03:55 · 1534 阅读 · 1 评论