Comments (6)
@zhoudongliang did you check that the number of classes in your config file is correct? I had the same bug and I fixed it by setting cfg.MODEL.ROI_HEADS.NUM_CLASSES
for my Faster Rcnn model to the correct value
from detectron2.
I suggest you first try using the existing COCO configs on COCO dataset, to see whether there is anything special in your dataset that can cause the issue. This would make it much easier to isolate the potential causes.
The error messages you saw does indicate that the anchors may have a non-positive size. However, the way the anchors are generated (in anchor_generator.py
and then rpn.py
, and then rpn_outputs.py
) should guarantee a positive size. You may need to track its generation to see how it can become non-positive.
from detectron2.
Hi there. Thank you for reply! I looked dataset carefully, but I can't find any differences between original coco dataset and my dataset. I described both below. Additionally, the bugs came out randomly. When I tried training, three bugs came out randomly as I mentioned in the article and Training suddenly succeeded during several attempts. It's so weird.
coco dataset as follows:
"images": [{
"license": 4,
"file_name": "000000397133.jpg",
"coco_url": "http://images.cocodataset.org/val2017/000000397133.jpg",
"height": 427,
"width": 640,
"date_captured": "2013-11-14 17:02:52",
"flickr_url": "http://farm7.staticflickr.com/6116/6255196340_da26cf2c9e_z.jpg",
"id": 397133
},
"annotations": [{
"segmentation": [
[510.66, 423.01, 511.72, 420.03, . . . , 510.03, 423.01, 510.45, 423.01]
],
"area": 702.1057499999998,
"iscrowd": 0,
"image_id": 289343,
"bbox": [473.07, 395.93, 38.65, 28.67],
"category_id": 18,
"id": 1768
}, {
"segmentation": [
my dataset as follows:
"images": [
{
"file_name": "0763229.jpg",
"width": 400,
"id": 763229,
"license": 3,
"height": 600
},
"annotations": [
{
"segmentation": [
[
146,
363,
154,
373,
. . .
147,
349,
144,
363
]
],
"area": 28951,
"iscrowd": 0,
"image_id": 763229,
"bbox": [
122,
168,
131,
221
],
"category_id": 9,
"id": 10
}, {
"segmentation": [
from detectron2.
After I add "bbox_mode": 1
in my json file, above errors are resolved(My dataset has XYWH_ABS type of BBox). But I think there are still race conditions. Because cuda error sometimes occurs even if the code is same.
from detectron2.
"Input boxes to Box2BoxTransform are not valid!"
AssertionError: Input boxes to Box2BoxTransform are not valid!
hello, I have also met the problem.
"Input boxes to Box2BoxTransform are not valid!"
AssertionError: Input boxes to Box2BoxTransform are not valid!
I checked my bbox, they are valid, could you provide me how to solve the first bug ?
from detectron2.
After I add
"bbox_mode": 1
in my json file, above errors are resolved(My dataset has XYWH_ABS type of BBox). But I think there are still race conditions. Because cuda error sometimes occurs even if the code is same.
I set this item in the json file, it is not possible, no matter the number of GPUs is 1 or 2. Who can answer me, when I train, this error always occurs and the training is interrupted, which is uncomfortable!
from detectron2.
Related Issues (20)
- export_model.py crashes with keypoints HOT 1
- export_model.py crashes with keypoints HOT 7
- Very slow training on Apple M1 Pro HOT 2
- UnpicklingError: invalid load key, '\xef'. HOT 2
- export_model.py - list_of_lines[165] = " [1344, 1344], 1344 \n" HOT 1
- Please read & provide the following HOT 2
- The comits you are making are breaking the code!!! HOT 1
- @torch.compiler.disable - AttributeError: module 'torch' has no attribute 'compiler' HOT 7
- missing config key error HOT 2
- Please read & provide the following HOT 1
- Detectron2 about rotated object detection HOT 1
- AttributeError: Cannot find field 'gt_masks' in the given Instances! HOT 1
- DensePose的apply_net.py运行dump的选项时候,如何多gpu运行呢? HOT 1
- Encountered freezing during start training at iteration 0 HOT 2
- printing label name and bbox coordinates of predicted images
- Add device argument for multi-backends access & Ascend NPU support HOT 3
- How to convert densepose model to onnx? HOT 1
- 模型跑出来的效果超出预期
- Does this project support FCOS? HOT 1
- C++ and onnx HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detectron2.