Debug in Jupyter notebooks

Variable inspector A quick way to inspect variables can be done with the jupyter extension Variable Inspector if a more line by line debug is required then you can either use pdb or what I’m using now is PixieDebugger that gives me a more traditional way to debug code Debug with PixieDebugger Install PixieDust using the following pip command:…

Computer vision algorithms

ORB Algorithm: Oriented Fast and Rotated Brief, creates feature vectors from detected keypoints and is invariant to rotations, changes in illumination, and noise. HOG Algorithm: Histogram of Oriented Gradients works by creating histograms of the distribution of gradient orientations in an image and then normalizing them in a very special way. This special normalization is…

100DaysOfMLCode Index

  100DaysOfMLCode Index Attention mechanisms Batch size CNNs Computer Vision Conda Data Augmentation Defining a network structure Downloading Datasets Dropout Embeddings FastAI Filtered Images Facia-Keypoints-Detector notes GPU States High bias & high variance Hyperparameters Image Captioning Project Notes Intro to Pandas Lab Jobs in Computer Vision Layer Shapes Learning Rates Localization LSTM cells Momentum Machine…

LSTM in PyTorch

To define a LSTM: lstm = nn.LSTM(input_size=input_dim, hidden_size=hidden_dim, num_layers=n_layers) To initialize the hidden state: h0 = torch.randn(1, 1, hidden_dim) c0 = torch.randn(1, 1, hidden_dim) We will need to wrap everything in Variable, input is a tensor inputs = Variable(inputs) h0 = Variable(h0) c0 = Variable(c0) Get the outputs and hidden state out, hidden = lstm(inputs,…