open-mmlab / mmfashion

Open-source toolbox for visual fashion analysis based on PyTorch
https://open-mmlab.github.io/
Apache License 2.0
1.25k stars 281 forks source link

Docker question: is there a way for avoiding the --gpus paramater (without installing the NVIDIA toolkit) ? #103

Closed robertolanuti closed 3 years ago

robertolanuti commented 3 years ago

I'm trying to run a first demo test using the docker version but I'm experencing an issue when I try to run the container:

sudo docker run --gpus all --shm-size=8g -it mmfashion
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

I'm sorry for my query but I'm using an ubuntu 18.04 machine that I cannot restart as contains few production services. Do you have any suggestion related to that?

robertolanuti commented 3 years ago

After a bit of more investigation, I have bought a new NVIDIA Graphic Card having the CUDA capabilities as for the requirements (Please note, as the last driver was giving me the CUDA 11.00 version, I had to downgrade the driver in order to obtain the CUDA 10.1 as for the requirements).

FYI (as it is a "cheap" card), the new graphic card is NVIDIA GeForce GT 710. Please note, it didn't work straightaway due to CUDA incompatibility, but after playing a bit I have managed to have that working.

I'm closing this ticket even if, maybe, it might be worth it to create a new ticket as I could see that there is a parameter for running the test without CUDA: I was wondering if it is something ToDo?