Comments (4)
In the pre processing of the image, padding etc is done, thus changing the dimensions of the original input image.
For drawing boxes, these new dimensions have to be mapped back.
I will add a censor() function with these changes in a few days.
from nudenet.
Yeah the box values seem to be off for me aswell.
I dug around through the code and found that the box returned is [x, y, width, height]
. But if I transform this to top upper right lower
coordinated as (box[0], box[1], box[0] + box[2], box[1] + box[3])
for cropping, the x0
coordinate in combination with the width seems to always be off. Either it starts too to the right on the left breast and doesn't cover it all on the left side or too to the left on the right breast and doesn't cover it all on the right side. Actually, I ended up noticing the y
height
combination is off aswell.
This used to work perfectly with v2 but in v2 I didn't have to change the box coordinates at all. I could just pass it to crop as they were. It seems the box values changed between v2 and v3
The web version does it perfectly for the same image. The thing I noticed is that the web version shows me a smaller image and mine are large images.
from nudenet.
The boxes logic is fixed by @pa4y in #128
from nudenet.
Line 132 in a600440
censor function is now added. refer to readme for example.
from nudenet.
Related Issues (20)
- JSON RESULTS NOT COMPLETE HOT 8
- UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider' HOT 1
- pretrained model best.onnx HOT 1
- in_browser "Can't create a session" HOT 1
- Accuracy Issues with Certain Classes in NudeClassifier HOT 1
- Onnx Post-Processing, NMS, TensoRT HOT 4
- Possible with tf-light? HOT 3
- I made a censor extension for stable diffusion web ui using nudenet HOT 3
- Dataset question
- Helllo~how to train detectot by ourself?Is it use the model yolov8???
- Unable to detect NFS image
- Dataset availability
- ONNX Model wont load HOT 2
- not lunching after install HOT 6
- Not Predicting unsafe on some nsfw images HOT 1
- Censor type
- why is web version much better than python library? HOT 1
- how to cover parts after detected ?
- New detector only inputs path, can't use with cv images. HOT 3
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 nudenet.