Deepfake_detection_using_deep_learning icon indicating copy to clipboard operation
Deepfake_detection_using_deep_learning copied to clipboard

Enabling project work on Non-cuda devices

Open Tharun-PS opened this issue 2 years ago • 7 comments

In the readme file, under "We welcome Open Source Contribution", Enabling working of project on Non Cuda Computers. i.e on normal or AMD GPUs is considered not possible as dlib uses CUDA internally. I have modified the code in such a way that the project works very fine on Normal computer's CPU without requiring GPU. Wishing to contribute to the requirements stated in readme file. I'm using Lenovo Ideapad S340 with intel i5 processor.

Tharun-PS avatar Mar 08 '23 10:03 Tharun-PS

Thanks, Changes look good, but if you can refactor a bit to provide options for selecting CPU or GPU. Also please don't commit any binary files

abhijithjadhav avatar Mar 14 '23 15:03 abhijithjadhav

Okay sure. I'll add that and update

Tharun-PS avatar Mar 14 '23 16:03 Tharun-PS

I have made some changes. First it will check if cuda is availble or not. If cuda is available --> device = 'cuda' else --> device = 'cpu' and this device variable will used in code that generalizes the usage for all users.

Tharun-PS avatar Mar 19 '23 15:03 Tharun-PS

Changes looks good .. but you can try deleting unwanted files like py-cache and all

abhijithjadhav avatar Mar 29 '23 14:03 abhijithjadhav

Changes looks good .. but you can try deleting unwanted files like py-cache and all

And yes. I have deleted that directory. Sorry for the delay

Tharun-PS avatar Mar 29 '23 16:03 Tharun-PS

Sorry for the delay, was a bit busy. I can still see some pycache files

abhijithjadhav avatar Jun 04 '23 14:06 abhijithjadhav

I have made some changes. First it will check if cuda is availble or not. If cuda is available --> device = 'cuda' else --> device = 'cpu' and this device variable will used in code that generalizes the usage for all users.

how to check the cuda availability??

IMMORTALCHIRU avatar Apr 05 '24 11:04 IMMORTALCHIRU

No comments on the PR. Closing the PR

abhijithjadhav avatar Jun 25 '24 09:06 abhijithjadhav