pytorch-deep-learning icon indicating copy to clipboard operation
pytorch-deep-learning copied to clipboard

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

Open mam1680 opened this issue 2 years ago • 2 comments

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

mam1680 avatar Aug 22 '23 11:08 mam1680

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

jenabesaman avatar Aug 25 '23 11:08 jenabesaman

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)?

mrdbourke avatar Oct 13 '23 04:10 mrdbourke