Skip to content

Instantly share code, notes, and snippets.

View Miladiouss's full-sized avatar

Milad Pourrahmani Miladiouss

View GitHub Profile
@Miladiouss
Miladiouss / Select_CIFAR10_Classes.py
Last active October 27, 2023 03:41
Create PyTorch datasets and dataset loaders for a subset of CIFAR10 classes.
import torchvision
import torchvision.transforms as transforms
from torchvision.datasets import CIFAR10
from torch.utils.data import Dataset, DataLoader
import numpy as np
# Transformations
RC = transforms.RandomCrop(32, padding=4)
RHF = transforms.RandomHorizontalFlip()
RVF = transforms.RandomVerticalFlip()
@percurnicus
percurnicus / custom.css
Last active March 28, 2020 22:05
Jupyter Notebook Theme Adapted from Monokai theme in Jupyter themes
/*
Adapted from Jupyter Themes Monokai theme
https://github.com/dunovank/jupyter-themes/blob/master/jupyterthemes/styles/compiled/monokai.css
To use the custom template, make a directory ~/.jupyter/custom/ and then create
the file custom.css in that directory.
*/
div#notebook {
@ashmoran
ashmoran / README.markdown
Created August 30, 2011 14:57
Example Markdown "links at the end" format