GithubHelp home page GithubHelp logo

lexfridman / mit-deep-learning Goto Github PK

View Code? Open in Web Editor NEW
10.0K 10.0K 2.2K 63.94 MB

Tutorials, assignments, and competitions for MIT Deep Learning related courses.

Home Page: https://deeplearning.mit.edu

License: MIT License

Jupyter Notebook 100.00%
artificial-intelligence data-science deep-learning deep-reinforcement-learning deep-rl deeplearning jupyter-notebooks machine-learning mit neural-networks segmentation self-driving-cars tensorflow tensorflow-tutorials

mit-deep-learning's People

Contributors

ld-ing avatar lexfridman avatar och234 avatar siddiqaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mit-deep-learning's Issues

Display wrong measure value in Test set

Hi there,
In the part1 of deep_learning_basic lession, this cell i think you displayed the RMSE value in validation set. It should be the new 'rmse' variable instead.

X_test = scaler.transform(X_test)
mse, _, _ = model.evaluate(X_test, y_test)
rmse = np.sqrt(mse)
print('Root Mean Square Error on test set: {}'.format(round(rmse_final, 3)))

Issues when running the notebook on Colab

Hi. I tried to run DeepLearningBasics notebook on Colab.
Below are some of the issues I came across:

The code to download mnist_dream.mp4 video when using Colab doesn't work if ran as is:

mnist_dream_path = urllib.request.urlretrieve(os.path.join(deep_repo_url, 'mit_driveseg_sample.mp4')[0]

deep_repo_url is not declared anywhere and the video mentioned in the code is incorrect

I tried below two versions of code to download the video and both worked:

 !wget https://github.com/lexfridman/mit-deep-learning/tree/master/tutorial_deep_learning_basics/images/mnist_dream.mp4
import urllib
urllib.request.urlretrieve("https://github.com/lexfridman/mit-deep-learning/tree/master/tutorial_deep_learning_basics/images/mnist_dream.mp4","mnist_dream.mp4")

The code ret, img = cap.read() returns the tuple False, None. There seems to be some problem with VideoCapture() on Colab.

Since the img is not being returned as expected, the rest of the code to do inference on mnist_dream.mp4 frames isn't working.

I remember facing problems in the past when using OpenCV methods on Colab. I'm not aware of any fix or workaround for this issue atm.

Besides these issues on Colab, below are few things that can be modified:

The functiondef plot_history(history) works just fine without the parameter history since it's not being used anywhere inside the function

In the below code, rmse needs to be printed instead of rmse_final

test_features_norm = (test_features - train_mean) / train_std
mse, _, _ = model.evaluate(test_features_norm, test_labels)
rmse = np.sqrt(mse)
print('Root Mean Square Error on test set: {}'.format(round(rmse_final, 3)))

tutorial_gans - Colab

path: tutorial_gans/tutorial_gans.ipynb

Some tf functions are deprecated

I added:
!pip install tensorflow==1.15

and there was no video, so i changed the last code cell to:
mp4 = open('gan.mp4','rb').read() data_url = "data:video/mp4;base64," + base64.b64encode(mp4).decode() HTML(""" <video width=400 controls autoplay loop> <source src="%s" type="video/mp4"> </video> """ % data_url)

I have issue with the first tutorial

The problem is from this: sep_color= (yn+1)/2.0; line, since it return's a array of list of list. And the pl.scatter() cannot accept array of list as parameter.

I unlisted the sep_color.

# Computing the colors for the points
from itertools import chain
sep_color = (yn+1)/2.0;
sep_color = list(chain(*sep_color))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.