Skip to content

Instantly share code, notes, and snippets.

@ashhadulislam
Last active July 26, 2022 15:16
Show Gist options
  • Save ashhadulislam/f9333e534a8cfbb88d8ae847e37c5e74 to your computer and use it in GitHub Desktop.
Save ashhadulislam/f9333e534a8cfbb88d8ae847e37c5e74 to your computer and use it in GitHub Desktop.
import torch
import torchvision
from torchvision import datasets, models, transforms
from torchvision.datasets import ImageFolder
from torch.utils.data import DataLoader, random_split
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.optim import lr_scheduler
import torch.backends.cudnn as cudnn
import numpy as np
import matplotlib.pyplot as plt
import time
import os
from PIL import Image
import copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment