Coder Social home page Coder Social logo

not lunching after install about nudenet HOT 6 OPEN

NasaKHw avatar NasaKHw commented on June 6, 2024
not lunching after install

from nudenet.

Comments (6)

NasaKHw avatar NasaKHw commented on June 6, 2024 2

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.

bedapudi6788 avatar bedapudi6788 commented on June 6, 2024

@NasaKHw can you reproduce in a colab and share the link?

from nudenet.

NasaKHw avatar NasaKHw commented on June 6, 2024

sorry im not familiar with it,
do we have to install onnx along with onnxrutime too?

from nudenet.

bedapudi6788 avatar bedapudi6788 commented on June 6, 2024

https://colab.research.google.com/

from nudenet.

NasaKHw avatar NasaKHw commented on June 6, 2024

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.

bedapudi6788 avatar bedapudi6788 commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.