-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimports.py
More file actions
27 lines (24 loc) · 656 Bytes
/
imports.py
File metadata and controls
27 lines (24 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import torch
import torch.nn as nn
import torch.optim as optim
from torchvision import datasets, transforms
import matplotlib.pyplot as plt
from tqdm.auto import tqdm
import torch.nn.functional as F
import math
import numpy as np
import random
from torch import nn
from torch.optim import Adam
import streamlit as st
from PIL import Image, ImageOps
import os
from einops import rearrange
from torch import nn, einsum
import torch.nn.functional as F
from inspect import isfunction
from functools import partial
from torch.nn.modules.linear import Linear
BATCH_SIZE = 64
img_size = 64
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")