Comments (9)
@cartvector You may try to reduce the anchor base size. It may fix the issue.
You may go to simple-faster-rcnn-pytorch-master\model\utils\bbox_tools.py and look for generate_anchor_base function. The default value for base_size is 16. You may want to reduce it to 4 or 8.
from simple-faster-rcnn-pytorch.
This also corresponds with no anchors inside the image? I.e. inside_index is 0 in line 206 in creator_tool.py. Maybe for this special case clipping the anchors to image size is the way to go?
from simple-faster-rcnn-pytorch.
Maybe adjust anchor size to fit your dataset? And could it be that the bbox
instead of anchor
is empty?
Btw, I suggest you to run it in IPython with %run
. Then when it interrupt, you can go into the code that breaks with %debug
.
from simple-faster-rcnn-pytorch.
So I clipped the anchors whenever inside_index returns 0 and now it trains atleast. But I think this is a small bug regardless as if none of your anchors are inside the image something should be done.
from simple-faster-rcnn-pytorch.
ious = bbox_iou(anchor, bbox)
argmax_ious = ious.argmax(axis=1)
I think it seems more likely that the bbox
is mepty.
from simple-faster-rcnn-pytorch.
@joeybose How did you clip the anchors?
from simple-faster-rcnn-pytorch.
It's been a while so I can't remember the exact solution anymore. But I have a fork of this repo which kinda works so maybe look there?
from simple-faster-rcnn-pytorch.
@chenyuntc I debug this project in pycharm,this problem happened:
"ValueError: attempt to get argmax of an empty sequence"
in "ious = bbox_iou(anchor, bbox)
argmax_ious = ious.argmax(axis=1)
max_ious = ious[np.arange(len(inside_index)), argmax_ious]"
What can I do to solve this problem?
from simple-faster-rcnn-pytorch.
it works! thank you @sidml
from simple-faster-rcnn-pytorch.
Related Issues (20)
- Time consumption mainly comes from the i/o of cpu and gpu(such as numpy to tensor(cuda)) is that correct?
- Why do I need to copy a formal parameter in your codes? Is there some trick?(data/util.py bbox = bbox.copy())It's common in C++, but in python, i'm very curious.
- How to train Faster R-CNN on my own custom dataset and changing the RPN loss functions? HOT 2
- ValueError: need at least one array to stack HOT 3
- 关于RPN网络softmax HOT 2
- connection error HOT 1
- Can I test this model for real-time object detection? Is there a demo for it? HOT 1
- Without the incoming socket you cannot receive events from the server or register event handlers to your Visdom client. HOT 4
- In train.py line: 76
- 训练过程的loss HOT 2
- train mine dataset had an error!!! HOT 2
- Visdom and aws Sagemaker - output ?
- 训练好的模型在哪里保存啊? HOT 1
- out of memory 训练的时候显存一直在增长 HOT 4
- 怎么打印fps HOT 1
- step by step understanding approximate joint training method #192 HOT 5
- approximate joint training method problem
- How can I cite your work in my thesis?
- Convert to onnx
- Dependencies versions
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 simple-faster-rcnn-pytorch.