mrdbourke / pytorch-deep-learning

Materials for the Learn PyTorch for Deep Learning: Zero to Mastery course.
https://learnpytorch.io
MIT License
11.03k stars 3.24k forks source link

going modular: keep executing train.py with no output! #606

Open mam1680 opened 1 year ago

mam1680 commented 1 year ago

when I run train.py by : !python going_modular/train.py it keeps running and gives no output , what's the problem? I also changed the train_dir and test_dir : train_dir = "../data/pizza_steak_sushi/train" test_dir = "../data/pizza_steak_sushi/test"

and it raised below error: FileNotFoundError: [WinError 3] The system cannot find the path specified: '../data/pizza_steak_sushi/train'

I use Jupyter notebook(locally) not google colab

jenabesaman commented 1 year ago

Maby you should search for how to give full directory in python in jupyter .cues it means system can not find the directory at all. Try to work with directories in python in Jupyter

mrdbourke commented 1 year ago

Hi @mam1680 ,

Do the following directories exist on your local machine?

train_dir = "../data/pizza_steak_sushi/train" test_dir = "../data/pizza_steak_sushi/test"

If not, you may have to create them.

Also where are you running the !python going_modular/train.py command?

Is it inside a notebook?

Does this notebook have access to the right paths (listed above)?