Comments (2)
Ok, so I think it is an opencv issue. My solution is to just set the negative values to 0 in the box_points array, so that the opencv copy method can do it's job. Not sure if it works in general but on my dataset it is usually the top of the picture that is cropped to hide peoples faces and I guess the pretrained resnet50_coco_best_v2.0.1.h5 will tend to detect people with their faces not cropped. :)
My solution:
In imageai/Detection/init.py line 743 I add:
detection_details = [0 if x < 0 else x for x in detection_details]
from imageai.
I am happy you found a way around the issue. I will investigate the issue further to see if a more solid solution can be provided, else I will adopt your approach of keeping the negative value at 0.
Also, the RetinaNet model (resnet_coco_best_v2.0.1.h5) can detect persons irrespective of the perspective they are viewed from.
from imageai.
Related Issues (20)
- Can't find this function,detectCustomObjectsFromImage. HOT 2
- Error when training custom detection: bounding box values should be in the range 0 - 1 HOT 1
- Multiple GPU support with pytorch backend HOT 1
- Custom image detection always returns one wrong result HOT 1
- File size reduction HOT 2
- ml
- How can I do to make that the processed video stream is playing in real-time to users in ImageAI? HOT 1
- How to run ImageAI on AMD GPU? HOT 1
- Custom Object Detection HOT 1
- ModuleNotFoundError: No module named 'imageai' HOT 2
- Custom Detection Model Training: Validation values schow always 0.000000 HOT 1
- TypeError
- theia-engine Link is not working
- For the classifier, what is the size image reduce to dimensions? HOT 1
- Multiple Errors HOT 2
- RetinaNet model tries to write to system directory
- recall: 0.000000 precision: 0.000000 [email protected]: 0.000000, [email protected]: 0.000000 HOT 1
- Cannot use my own pretrained model, Loss going NaN
- OSError: Unable to open file (file signature not found)
- Calling imageAI .pt model and .json file
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 imageai.