lint(generator): 🚮 remove unused imports

This commit is contained in:
Kevin Turner 2023-01-17 11:44:45 -08:00
parent 3c919f0337
commit 5aec48735e

View File

@ -8,6 +8,7 @@ import os
import os.path as osp import os.path as osp
import random import random
import traceback import traceback
from contextlib import nullcontext
import cv2 import cv2
import numpy as np import numpy as np
@ -18,11 +19,8 @@ from einops import rearrange
from pytorch_lightning import seed_everything from pytorch_lightning import seed_everything
from tqdm import trange from tqdm import trange
from ldm.invoke.devices import choose_autocast
from ldm.models.diffusion.cross_attention_map_saving import AttentionMapSaver
from ldm.models.diffusion.ddpm import DiffusionWrapper from ldm.models.diffusion.ddpm import DiffusionWrapper
from ldm.util import rand_perlin_2d from ldm.util import rand_perlin_2d
from contextlib import nullcontext
downsampling = 8 downsampling = 8
CAUTION_IMG = 'assets/caution.png' CAUTION_IMG = 'assets/caution.png'