davidADSP/Generative_Deep_Learning_2nd_Edition

Notes on running the notebooks on Windows 11

Opened this issue · 3 comments

Hello,

I would like to list possible necessary steps for those who want to run the notebooks on Windows 11.

You need to install Docker Desktop and follow the instructions.

Everything should run well up until downloading the data, here we must do something.

In my case, my additional steps were:

1- on the cloned repo directory run in terminal: "wsl -l"

You need it to choose Ubuntu as default, so that it shows:

Ubuntu (Default)
docker-desktop
docker-desktop-data

1.a - If you do not have ubuntu, run "wsl --install"

1.b after Ubuntu has installed, run "wsl -s Ubuntu" to make it default

2 - Go to Docker Desktop' settings and turn on this option -> Add the *.docker.internal names to the host's etc/hosts file (Requires password)

3 - Before downloading the data, understand that some scripts have different DOS/UNIX linebreaks, which means you will have to fix such scripts' linebreaks.

One way of doing this is by installing and running dos2unix on the scripts (as explained here: https://stackoverflow.com/questions/11616835/r-command-not-found-bashrc-bash-profile ).

So, first, "apt install dos2unix"

And then run, for instance, "dos2unix scripts\downloaders\download_bach_cello_data.sh"

4 - you can now download the data by running:

bash scripts/download.sh faces
bash scripts/download.sh bricks
bash scripts/download.sh recipes
bash scripts/download.sh flowers
bash scripts/download.sh wines
bash scripts/download.sh cellosuites
bash scripts/download.sh chorales

I hope this can help anyone running on Windows, I have written this from memory, so there might typo/ missing detail.

Thank you

I still receive the errors running in the windows 11 , even after installing the doker env
Below is the error i receive .,
Things i tried;
1- manually giving port ie $8000:$8000 or $$8000: $$8000 to the jupyter lab and still not resolve the issue.
Kindly help

Screenshot 2023-05-22 015117

I am not sure, but I do remember having this same error ("items[0,1] must be unique") because I had forgotten to add my kaggle username and password to the .env file. Could it be it for you as well, @Ahtesham519 ?

Yup its now solved for me , first time using docker .
wsl_update_x64.msi
I receive the error to update my "wsl" for my pc ,which i did and the second resolve was from you creating the env and updating my credential for Kaggle.
Happy learning