π for the course projcts, Unity MLAgents - Banana Collector
, etc.
π go to the Banana and VisualBanana notebooks
π go to the course repo
π check course curriculum
Window 11, VSCode, Minicoda, Powershell
π’ used the following shell commands to set up the env in windows 11
+ vscode
+ miniconda
.
(drlnd) PS D:\github\udacity-deep-reinforcement-learning\python
conda create --name drlnd python=3.6
conda activate drlnd
cd python
conda install cuda --channel "nvidia/label/cuda-12.1.0"
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
pip install tensorflow==1.7.1
pip install -r requirements.txt
python -m ipykernel install --user --name=drlnd
jupyter notebook ../p1_navigation/Navigation.ipynb
jupyter notebook ../p1_navigation/Navigation_Pixels.ipynb
π’ requirement.txt
# tensorflow==1.7.1
bleach==1.5.0
# torch==0.4.0
Pillow>=4.2.1
matplotlib
numpy>=1.11.0
pytest>=3.2.2
pyyaml
# protobuf==3.5.2
protobuf==3.6.0
grpcio==1.11.0
numpy
pandas
scipy
# ipykernel
# jupyter
βͺοΈ protobuf<=3.10.x
β didn't work
conda install pytorch=0.4.1 -c pytorch
conda install tensorflow==1.7.1
βͺ check your gpu info.
(drlnd) PS D:\github\udacity-deep-reinforcement-learning\python> nvidia-smi
Sun Feb 11 02:44:15 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 551.23 Driver Version: 551.23 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce GTX 1650 Ti WDDM | 00000000:01:00.0 Off | N/A |
| N/A 45C P8 6W / 50W | 0MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
βͺοΈ If you get the following error, you need to install cuda.
(drlnd) PS D:\github\udacity-deep-reinforcement-learning\python> nvcc --version
nvcc : The term 'nvcc' is not recognized as the name of a cmdlet,
function, script file, or operable program.
βͺοΈ After installing cuda, you can check the cuda info.
(drlnd) PS D:\github\udacity-deep-reinforcement-learning\python> nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Feb__8_05:53:42_Coordinated_Universal_Time_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0
π’ 20230906 windows 11, install cuda, pytorch, from vs code + powershell
βͺοΈ go to the Evernote note
https://pytorch.org/get-started/locally/
π’ choose the right pytorch version
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
Unity-Technologies/ml-agents#1289
π’ unable to import UnityEnvironment in Basics.ipynb #1289
bhaskar-gaur opened this issue on Oct 4, 2018 Β· 6 comments
vincentpierre commented on Oct 4, 2018
make sure that protobuf==3.6.0
, I think this is where your error comes from.
ptrudzki commented on Oct 11, 2018
I had the same problem and pip install protobuf==3.6.0
worked for me
Some irrelevant info:
pytorch/pytorch#14468
βͺοΈ shivaprasad123m commented on Oct 8, 2019
Use the below link
for windows OS with configuration.
OS : Windows
Package : PIP
Language : Python 3.6
CUDA : None
https://pytorch.org/get-started/previous-versions/
βͺοΈ Installing without CUDA
βͺοΈ Linux and Windows
CUDA 12.1
https://www.tensorflow.org/install/source?hl=fr#gpu
βͺοΈ tensorflow and cuda versions
tensorflow-2.6.0 3.6-3.9 CCG 7.3.1 Bazel 3.7.2 8.1 11.2
tensorflow-2.5.0 3.6-3.9 CCG 7.3.1 Bazel 3.7.2 8.1 11.2
tensorflow-2.4.0 3,6-3,8 CCG 7.3.1 Bazel 3.1.0 8.0 11.0
pytorch/pytorch#14468
βͺοΈ pip install torch 0.4.0 (Windows) fails. #14468 Closed
MultiTrickFox opened this issue on Nov 28, 2018
https://forums.fast.ai/t/unofficial-pytorch-0-4-support/16285/15
βͺοΈ pytorch 0.4.1