Comments (6)
it worked !!! thank you very much u are the best
also i made a code using chatgpt cuz for detection all images from a directory witch i share it here hope someone can use it
thanks again
The best python version for this ai is 3.10 I was trying with 3.6 3.8 and 3.9 before.
/
import os
import json
from nudenet import NudeDetector
# Initialize the NudeDetector
nude_detector = NudeDetector()
# Define the directory containing the images
image_directory = 'path_to_your_image_directory'
# Define the output file name
output_file = 'nudity_detection_results.json'
# Create a list to store all detection results
all_results = []
# Iterate through all files in the directory
for filename in os.listdir(image_directory):
if filename.endswith('.jpg') or filename.endswith('.png'):
# Detect nudity in the current image
image_path = os.path.join(image_directory, filename)
detections = nude_detector.detect(image_path)
# Store the filename and detection results in a dictionary
image_results = {
'filename': filename,
'detections': detections
}
# Append the dictionary to the list
all_results.append(image_results)
# Write the detection results to the output file in JSON format
with open(output_file, 'w') as f:
json.dump(all_results, f, indent=4)
print(f"Nudity detection results saved to {output_file}")
from nudenet.
@NasaKHw can you reproduce in a colab and share the link?
from nudenet.
sorry im not familiar with it,
do we have to install onnx along with onnxrutime too?
from nudenet.
https://colab.research.google.com/
from nudenet.
thanks i saw it but i dont know how to work with it and how its going to help, i mean i have installed it on my own server with different tools and packages maybe there is an problem with them and not the project, i have installed it right and lunched it like 2 days ago and then i reinstalled the os after that i saw too many errors and solved them one by one to get it right and after all this is the last beast error dont know how to deal with it
i'll be so grateful if u can help me lunch it, i can share ssh access trought anydesk if u can provide me an email
from nudenet.
Hey, please create a new clean python 3.10 conda environment and run pip install --upgrade nudenet
and try the same and paste here what's the output you got.
from nudenet.
Related Issues (20)
- 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 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
- Centering censorship area around specific points
- Error: no available backend found. ERR: [wasm] RangeError: Out of memory, [cpu] Error: previous call to 'initWasm()' failed., [webnn] Error: previous call to 'initWasm()' failed.
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.