Coder Social home page Coder Social logo

dataprepping_generative_ai's People

Contributors

wsperger avatar

Stargazers

 avatar

Watchers

 avatar

dataprepping_generative_ai's Issues

FileNotFoundError when Running Face Detection Script despite file present

Issue Report: FileNotFoundError when Running Face Detection Script

Description

When attempting to run the face detection script on an image located at F:/testfolder/100022.jpg, the following error occurs:

Using face_detection on F:/testfolder\100022.jpg
Traceback (most recent call last):
File "c:\Users\wolfg\Documents\GitHub\dataprepping\Images\labelling\main.py", line 65, in
main()
File "c:\Users\wolfg\Documents\GitHub\dataprepping\Images\labelling\main.py", line 60, in main
process_images_with_helpers(helpers)
File "c:\Users\wolfg\Documents\GitHub\dataprepping\Images\labelling\main.py", line 40, in process_images_with_helpers
helper_module.process_image(image_path)
File "C:\Users\wolfg\Documents\GitHub\dataprepping\Images/labelling/annotation_helpers\face_detection.py", line 57, in process_image
landmark_data = detect_faces(image_path)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wolfg\Documents\GitHub\dataprepping\Images/labelling/annotation_helpers\face_detection.py", line 27, in detect_faces
subprocess.run(command, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Users\wolfg\Documents\GitHub\dataprepping.conda\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wolfg\Documents\GitHub\dataprepping.conda\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\wolfg\Documents\GitHub\dataprepping.conda\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
PS C:\Users\wolfg\Documents\GitHub\dataprepping>

Steps to Reproduce

  1. Navigate to the directory containing the script: c:\Users\wolfg\Documents\GitHub\dataprepping\Images\labelling\main.py.
  2. Run the script using the following command: python main.py.

Expected Behavior

The script should successfully detect faces in the image located at F:/testfolder/100022.jpg and provide the expected output without errors.

Actual Behavior

The script encounters a FileNotFoundError with the message [WinError 2] The system cannot find the file specified when trying to execute a subprocess.

Possible Causes

  • The subprocess command being executed in the face_detection.py script may not have the correct path to the required executable or file.
  • The file 100022.jpg may not exist at the specified location F:/testfolder/.
  • There could be an issue with the environment or missing dependencies required for face detection.
  • The problem in fixing this is that the file is there.

Suggested Solutions

  1. Check the path to the executable or file being called in the subprocess command within face_detection.py. Ensure that the path is correct and that the file exists.
  2. Verify that the image file 100022.jpg exists at the specified location F:/testfolder/.
  3. Ensure that all necessary dependencies and libraries for face detection are installed and properly configured in your environment.

Screenshots or Additional Logs

If available, provide any relevant screenshots or additional log information that can help diagnose the issue.

References

If there are any relevant links, documentation, or references related to this issue, please provide them here.

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.