aamini / introtodeeplearning

Lab Materials for MIT 6.S191: Introduction to Deep Learning
MIT License
7.2k stars 3.63k forks source link

Lab1 training data not found under mdl.lab1.load_training_data() #74

Open ankit-crossml opened 4 years ago

ankit-crossml commented 4 years ago

Hello Team,

I was trying to practice your Lab1 music generation notebook. But I am unable to import or load data through following code:

# download data
songs = mdl.lab1.load_training_data()

I got this below error:

AttributeError: module 'mitdeeplearning' has no attribute 'lab1'

Any help?

Regards, Ankit

aamini commented 4 years ago

Hi @ankit-crossml could you please provide some information on the version of python and platform you're using. We've been testing exclusively on Google Colab for this version of the code.

a-othman commented 4 years ago

@aamini , Hi I have got the same error @ankit-crossml got. I was running python 3 in a Jupyter notebook.

kunalpatel321 commented 4 years ago

Hi I have got the same error @ankit-crossml got. I was running python 3 in a Jupyter notebook.

edwinlxl commented 3 years ago

I got the same error, I use python3.7 in local computer, it's missing lab1 attributes image

MadMMan commented 3 years ago

This problem can be solved by importing in this pattern. "from mitdeeplearning.lab1 import load_training_data as ltd"

Cs-Student commented 3 years ago

try to import it like this from mitdeeplearning import lab1 and then use the corresponding functions like songs = lab1.load_training_data()

Themoonflow commented 2 years ago

try to import it like this from mitdeeplearning import lab1 and then use the corresponding functions like songs = lab1.load_training_data()

Doesn't work either. Lack of one module: ModuleNotFoundError: No module named 'cv2'

MadMMan commented 2 years ago

try to import it like this from mitdeeplearning import lab1 and then use the corresponding functions like songs = lab1.load_training_data()

Doesn't work either. Lack of one module: ModuleNotFoundError: No module named 'cv2'

Try to install OpenCV using pip.

Themoonflow commented 2 years ago

try to import it like this from mitdeeplearning import lab1 and then use the corresponding functions like songs = lab1.load_training_data()

Doesn't work either. Lack of one module: ModuleNotFoundError: No module named 'cv2'

Try to install OpenCV using pip.

Thank you, below configurations works! conda update anaconda-navigator conda update navigator-updater pip install opencv-python