Skip to content

Instantly share code, notes, and snippets.

@jtiscione
jtiscione / deepdream.py
Created January 1, 2022 02:59
Deep Dream algorithm for transforming a JPG
import numpy as np
import torch
from torch.autograd import Variable
from torch.optim import SGD
from torchvision import models, transforms
import PIL
import matplotlib.pyplot as plt
import scipy.ndimage as nd
import PIL.Image
from IPython.display import clear_output, Image, display
@jtiscione
jtiscione / jetson-nano-jupyter.ipynb
Created February 24, 2020 18:58
Testing detectnet in Jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jtiscione
jtiscione / mnist-pytorch.py
Last active October 29, 2019 01:02
Pytorch MNIST training and export to ONNX
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
## for printing image (when DEBUGGING flag is set)
import matplotlib.pyplot as plt
import numpy as np