MotorCityCobra / face_ripper_9000

Creates 256 cropped, high quality facesets from a batch of mp4 videos end to end
MIT License
30 stars 10 forks source link

OS Error [Win Error 17] The system cannot move the file to a different disk drive #9

Open gessyoo opened 6 years ago

gessyoo commented 6 years ago

I'm running Anaconda python 3.5 on Win 10 x64, and the dependencies are installed. I've recompiled OpenCV and Dlib to use CUDA. I'm a python beginner. I'm trying to extract pics from a video, both are on the same drive and in the same directory. There are no spaces or special characters in the target directory or filename.
The error message points to line 159 of demo.py, "in (module) (os.rename + /too small+str(counter) +random string(15) + "*.jpg") and then OS Error [Win Error 17] The system cannot move the file to a different disk drive.
Unfortunately, I don't know enough python to troubleshoot. How to resolve the error?

MotorCityCobra commented 6 years ago

Have you tried starting out with the demo.py file and the target face, and the path to the mp4s in different places? The script switches working directories at one point. I think a certain wrong placement of these paths confuses the script somehow.

I'll repeat what you should try a few ways just to make sure it's clear... Run demo.py in your virtual environment (if you're using one) and try placing the target jpg and the path to the mp4s in different places if that makes sense. If they were in the same path as your demo.py file, try putting the target jpg and the folder of mp4s in folders somewhere like your Desktop.

gessyoo commented 6 years ago

Thanks, I'll give it a try with different locations.