tfaehse / DashcamCleaner

Censor identifiable information in videos, in particular dashcam recordings in Germany.
GNU Affero General Public License v3.0
130 stars 27 forks source link

CLI did not use GPU #70

Closed marcEnname closed 1 year ago

marcEnname commented 1 year ago

Hi,

I use DashcamCleaner with the CLI command and it works pretty great. But it didn't use my GPU (GeForce RTX 2080 TI) and so it censored the videos relatively slow. I use the Anaconda Prompt and I have installed pytorch how it is recommended. Is there an argument, I can use to force anaconda to use the GPU?

Screenshot 2023-04-23 1335011

tfaehse commented 1 year ago

Hi! Try reinstalling pytorch according to https://pytorch.org/get-started/locally/. Make sure to select "CUDA"!

marcEnname commented 1 year ago

Hi, thank you for responding.

I think I found my failure. I reinstalled Anaconda to have a fresh system. Then I set up the Python 3.8 environment, which I previously don't do. Then I reinstalled PyTorch, which also worked according to their tests.

PyTorch funktioniert py38

Then I installed the DashcamCleaner and now it works. PyTorch funktioniert py38 2

Thank you for helping.

marcEnname commented 1 year ago

I leave here my steps for the anaconda prompt to install it correctly, maybe its help.

cd C:\ conda create -n py38 python=3.8 conda activate py38 conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia git clone https://github.com/tfaehse/DashcamCleaner.git cd dashcamcleaner pip install -r requirements.txt cd C:\DashcamCleaner\dashcamcleaner python cli.py -i INPUT_PATH -o OUTPUT_PATH -w 1080p_nano_v8