elpresidente* писал(а): ↑can you provide answer to question below:
Нужно установить Detectron2 in Docker on WSL2 Win-10
А инструкция есть для Win-11 WSL2:
Instructions for Win-11
Там Cuda 11.3 или не выше 11.6
Should it work with WSL2 +Windows
10?
It is possible to install Detectron2 in Docker on WSL2 with Windows 10, but it may require some modifications to the instructions provided for Windows 11.
**Prerequisites:**
* Windows 10 with WSL2 enabled
* Docker Desktop for Windows
* NVIDIA GPU with CUDA 11.3 or earlier (CUDA 11.6 is not supported)
**Steps:**
1. **Install Docker Desktop for Windows:** Follow the official instructions to install Docker Desktop for Windows.
2. **Enable WSL2:** Open a PowerShell window as an administrator and run the following command:
```
wsl --set-version <your_linux_distro> 2
```
Replace `<your_linux_distro>` with the name of your Linux distribution (e.g., Ubuntu).
3. **Install NVIDIA drivers:** Install the NVIDIA drivers for your GPU. You can download the drivers from the NVIDIA website.
4. **Set up CUDA environment:** Follow the instructions in the CUDA Toolkit documentation to set up the CUDA environment in WSL2.
5. **Pull the Detectron2 Docker image:** Run the following command in a terminal:
```
docker pull facebookresearch/detectron2
```
6. **Run the Detectron2 container:** Run the following command to start a Detectron2 container:
```
docker run -it --gpus all --rm facebookresearch/detectron2
```
This will start a container with Detectron2 installed. You can now run Detectron2 commands within the container.
**Note:**
* The `--gpus all` flag specifies that all available GPUs should be used by the container.
* If you encounter any errors related to CUDA, make sure that you have installed the correct CUDA drivers and set up the CUDA environment properly.
* The instructions provided in the Medium article for Windows 11 may not be directly applicable to Windows 10, so you may need to make some adjustments.