
mask_rcnn
文章平均质量分 56
至尊宝♬
仍未成功,只因努力不够。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pycocotools在线安装--【可用】
在使用mask_rcnn进行训练时,需要pycocotools包,常规的pip命令安装会失败(主要还是c++环境的问题):比如:正确的安装命令是:pip install git+https://gitee.com/ztdztd/cocoapi.git#subdirectory=pycocotools前提:先安装Microsoft Visual C++ 14.0或以上版本。下载地址:Microsoft C++ Build Tools - Visual Studio...原创 2022-05-24 11:28:31 · 148 阅读 · 0 评论 -
tf2.6 OOM:tensorflow/core/framework/op_kernel.cc:1680] Resource exhausted: failed to allocate memory
2022-04-27 17:16:35.834265: I tensorflow/core/common_runtime/bfc_allocator.cc:1074] total_region_allocated_bytes_: 22727688192 memory_limit_: 22727688192 available bytes: 0 curr_region_allocation_bytes_: 454553763842022-04-27 17:16:35.834667: I tensorflo.原创 2022-04-28 10:16:41 · 2347 阅读 · 2 评论 -
maskrcnn如何防止过拟合
修改文件mrcnn/model.py大约970行位置,在全连接层加上dropout=0.5, # Classifier head mrcnn_class_logits = KL.TimeDistributed(KL.Dense(num_classes), name='mrcnn_class_logits')(shared) # 在全连接层加上dropout = 0.5(...原创 2022-04-15 10:32:56 · 1024 阅读 · 1 评论 -
mask-rcnn在训练过程中,突然中断报错,提示:boolean index did not match indexed array along dimension 0;dimension is..
一、环境:win10 + gpu 3090 + maskrcnn + tensorflow2.6.0;二、报错信息如下:IndexError: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 2image_id 549image_id 85 8/20 [===========>............原创 2022-03-30 22:40:19 · 7838 阅读 · 0 评论 -
mask_rcnn 训练自定义数据集(本地win10系统cpu已调通,采坑无数,均已列出解决方法)
源代码地址:https://github.com/junlintianxiatjm/Mask_RCNN-master0071.版本信息python 3.6.9Tensorflow 1.15.0keras 2.2.5Pillow 5.3.0(必须,否则labelme执行json_to_dataset会出错)Cv2(必须安装,训练模型时用到)Wraptopt_einsumGastscikit-imageIPython虚拟环境完整配置库如下:..原创 2021-07-17 00:35:21 · 4342 阅读 · 18 评论 -
mask_rcnn神经网络算法创建自定义数据集,用labelme给图片打标注。
一、软件安装(labelme)通过“pip list”命令可以查看当前已安装的工具包;安装labelme命令:“pip install -i https://pypi.douban.com/simple/ labelme”安装成功后,如下图所示:二、图片命名要求图片名称只能包含“数字”和“字符”,必须是“jpg”格式,名称中体现分类和等级;不能是其他格式,也不能包括“空格、中文、符号”等;名称不要太短,避免重名。参考下面...原创 2022-03-21 16:18:58 · 5554 阅读 · 0 评论 -
【亲测通过】MaskRcnn_tf1.x如何升级到MaskRcnn_tf2.x,实现RTX3090环境训练自定义数据集模型。
一、背景:之前一篇博文中已经实现了maskrcnn_tf1.15.0环境的win10+cpu模型训练,但cpu训练实在是非常的耗时,据说tf1.x是支持RTX1060的(本人未测试),但不支持最新的RTX3090,查阅了很多资料,原因应该是tf1.x与tf2.x的差别比较大,必须升级到tf2.x,才可以正常使用rtx3090。下面是maskrcnn_tf1.15.0的开发案例,本人亲测可用。mask_rcnn 训练自定义数据集(本地win10系统cpu已调通,采坑无数,均已列出解决方法)_君..原创 2022-03-11 15:07:21 · 3664 阅读 · 35 评论 -
mask-rcnn报错: IndexError: boolean index did not match indexed array along dimension 0; ......
mask-rcnn在执行train.py训练模型时,报错如下:image_id 769ERROR:root:Error processing image {'id': 769, 'source': 'shapes', 'path': 'train_data/pic/4A707SG3.jpg', 'width': 820, 'height': 706, 'mask_path': 'train_data/cv2_mask/4A707SG3.png', 'yaml_path': 'train_data..原创 2022-02-14 11:32:11 · 4185 阅读 · 5 评论 -
Internal: Invoking ptxas not supported on WindowsRelying on driver to perform ptx compilation.
环境:Windows 10, gpu 3090, TF 1.15,cuda_10.0.130_411.31_win10,cuDNN 7.6.5.32mask-rcnn框架,运行train.py报错信息如下:image_id 333image_id 32image_id 582022-01-01 19:03:07.415032: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully op..原创 2022-01-03 16:47:53 · 5404 阅读 · 4 评论 -
mask-rcnn报错: AttributeError: ‘Model‘ object has no attribute ‘metrics_tensors‘
环境:win10+gpu 3090执行解决方法:原创 2022-01-01 17:36:03 · 1353 阅读 · 2 评论 -
AttributeError: module ‘tensorflow._api.v1.compat.v2‘ has no attribute ‘__internal__‘【亲测有效】
环境:win10+gpu 3090mask-rcnn-master模型在执行train.py时报错:AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute '__internal__'解决方法:1.卸载:pip uninstall keras-nightly2.安装:pip install -i https://pypi.douban.com/simple/ h5py==2.10.0pi原创 2022-01-01 17:22:57 · 4422 阅读 · 5 评论 -
flask整合mask_rcnn模型
flask提供web框架,类似springboot,提供基本的网页开发脚手架(模板,路由,蓝图等等),用户可以根据业务需求,通过引入第三方库,添加需要的特有功能。flask与mask_rcnn同属于python系列,所以整合起来不存在语言障碍,相比于java等web框架,更得心应手。原创 2021-12-09 15:12:41 · 1647 阅读 · 2 评论