当前位置:网站首页>跑TDD-net遇到的一些坑
跑TDD-net遇到的一些坑
2022-07-21 05:04:00 【Jumbo星】
1、tensorflow不要用requirement里的2.5.1,一定要用1。因为不兼容,尝试过debug一下午都没法。
2、cudnn、gcc、tensorflow、cuda这四者严格按照相关兼容性进行搭配!具体可参考我的另外一篇文章
3、不仅要修改作者Readme里的checkpoint,还要修改cfgs.py文件里的一些目录。
4、如果跑完实验发现没结果,很可能是没加载成功pcb_30000model.ckpt导致的,具体来说要么是checkpoint地址错,要么是cfgs里地址错
就我而言,我是cfgs文件里
具体来说,在build_whole_network.py里
checkpoint_path = tf.train.latest_checkpoint(os.path.join(cfgs.TRAINED_CKPT, cfgs.VERSION)
cfgs.TRAINED_CKPT = rootpath + /output/trained_weights
cfgs.VERSION = FPN_Res101_0117_OHEM#也就是说,cfgs.py里的VERSION定义决定了模型加载目录
因此需要在trained_weights里新建文件夹 FPN_Res101_0117_OHEM,然后把那些checkpoint、pcb_30000model.ckpt文件丢进去,然后记得修改checkpoint指向!
5、inference、train、test、eval是几个不同的过程
拿作者readme来说,inference是单纯推理过程,拿训练好的模型去检测输入的图片,输出是检测结果(只是图片),不需要输入annotation,也没有所谓的精度结果。
而eval和test有点类似,输入图片(如果像COCO数据集细分了测试集,需要把目录设置为测试集)和annotation,然后进行测试精度,输出的有检测结果(图片),也有各种精度指标。
因此不要拿inference的结果去评估精度,而是要拿数据集里待测试的测试集去eval
边栏推荐
猜你喜欢
合泰HT32--淘晶驰TJC--T0串口屏学习笔记(二)
【3D建模】Solidworks 3D建模及PrusaSlicer切片打印学习笔记
Pytorch installation
Jprofiler安装及使用教程
Jenkins plug-in development - provide external access interface
合泰HT32 & 淘晶驰TJC--T0串口屏学习笔记
Reasons why fastjson @jsonfield format does not take effect
Projet d'intégration du cadre SSM
PyTorch基础模块和实践
Detailed explanation of NiO channel
随机推荐
Display method of front desk serial number
Mac brew install MySQL installation steps
As7341 spectrum sensor measures color temperature color_ temperature_ Study notes
kingbase转换时间
14. Can you tell the difference between process and thread
学习IO由浅入深
PyTorch基础知识
Mask RCNN loading weight error
Data type map, empty string, empty key value and other judgment methods are the most detailed in the whole network
二叉树的4种遍历的递归与非递归实现
2.从零开始学习paddlepaddle之向量计算
转换String三种方式比较:(String)、toString()、String.valueOf()
Rewrite hashcode() to compare whether the classes are the same
APISIX微服务网关
猫狗图片资源
Initializing libiomp5.dylib, but found libomp.dylib already initialized
1.从零开始学习paddlepaddle之环境安装与基础计算
Six relationships between UML models and classes
枚举的例子
4.paddlepaddle之10行代码mnist手写数字识别