{"id":13342469,"url":"https://github.com/Christophe-Foyer/darknet_wsl_cuda_install_scripts","last_synced_at":"2025-03-12T01:37:18.061Z","repository":{"id":94278980,"uuid":"346407156","full_name":"Christophe-Foyer/darknet_wsl_cuda_install_scripts","owner":"Christophe-Foyer","description":"Install scripts for Darknet and OpenCV with CUDA support on WSL","archived":false,"fork":false,"pushed_at":"2021-11-07T10:12:44.000Z","size":105,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T00:41:29.779Z","etag":null,"topics":["cuda","darknet","opencv","wsl","wsl2"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Christophe-Foyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-10T15:46:07.000Z","updated_at":"2024-03-02T10:10:35.000Z","dependencies_parsed_at":"2023-03-16T16:00:17.721Z","dependency_job_id":null,"html_url":"https://github.com/Christophe-Foyer/darknet_wsl_cuda_install_scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Foyer%2Fdarknet_wsl_cuda_install_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Foyer%2Fdarknet_wsl_cuda_install_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Foyer%2Fdarknet_wsl_cuda_install_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Foyer%2Fdarknet_wsl_cuda_install_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Christophe-Foyer","download_url":"https://codeload.github.com/Christophe-Foyer/darknet_wsl_cuda_install_scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243141286,"owners_count":20242815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cuda","darknet","opencv","wsl","wsl2"],"created_at":"2024-07-29T19:29:30.016Z","updated_at":"2025-03-12T01:37:18.052Z","avatar_url":"https://github.com/Christophe-Foyer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Darknet WSL installer\n\nThis is actually a bit less scary than it looks now that I'm on the other side, here's something that will hopefully make your lives easier.\nThis was a headache to install however so hopefully this helps a bit. There's still some weirdness in the script with python virtual environments but it works alright (installs to base python install).\n\n#### About\n\nThis script was made out of frustration at the install process, hopefully it helps others. Feel free to post issues/ask questions!\n\nWARNING: There's a good chance this will break your install. Do be warned. Use on a new wsl install (ideally your only one, NVIDIA doesn't like to share its GPUs)\n\nInstalls darknet and opencv to use on a clean Ubuntu 20.04 WSL installation\n\n#### First set up your windows host properly:\n\nFollow this guide until step 3 (\"Setting up CUDA Toolkit\"): https://docs.nvidia.com/cuda/wsl-user-guide/index.html\n\n###### AKA:\n- Get on the windows insider builds (anything above 20145 I believe)\n- Download the NVIDIA Driver\n- Install WSL2\n\n#### Download the required files\n\nDownload \"cuDNN Library for Linux (x86_64)\" and \"cuDNN Runtime Library for Ubuntu20.04 x86_64 (Deb)\" from: https://developer.nvidia.com/cudnn\n(you need an account)\n\nPut them on your wsl home folder\nJot the names down to plop in the script later on.\n\n#### Run the script\n(ideally from your home folder, that's where it was tested)\n\n```bash\nwget https://raw.githubusercontent.com/Christophe-Foyer/install_scripts/main/Darknet_WSL_CUDA.sh\n```\n\nCheck the variables before running with\n```bash\nnano Darknet_WSL_CUDA.sh\n```\n\nChange the variables to suit your GPU/Preferences/downloaded files.\n\n```bash\nCUDA_ARCH_BIN=\"5.0\"\ncuda_version=\"11-2\"\ncudnn_file=\"libcudnn8_8.1.1.33-1+cuda11.2_amd64.deb\"\ncudnn_lib_file=\"cudnn-11.2-linux-x64-v8.1.1.33.tgz\"\n```\n\nNow run it:\n```bash\nchmod +x Darknet_WSL_CUDA.sh\n./Darknet_WSL_CUDA.sh\n```\n\nThen follow prompts. It'll ask for a bunch of yeses, **type in 1 when it asks to choose a gcc** (for gcc7)\n\nPray for no cuda errors (if it throws \"cudaErrorInsufficientDriver\" check [here](https://forums.developer.nvidia.com/t/cuda-sample-throwing-error/142537), it's probably not happy that it has to share the GPU). Feel free to ask me questions or post issues. Hope this helps!\n\n## TODO:\nPut in install_cuda as a script that's run instead of a duplicate, non-issue when running\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChristophe-Foyer%2Fdarknet_wsl_cuda_install_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChristophe-Foyer%2Fdarknet_wsl_cuda_install_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChristophe-Foyer%2Fdarknet_wsl_cuda_install_scripts/lists"}