mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-01 12:25:06 +08:00
Cleanup ddpm_edit.py
Fully reverts this time
This commit is contained in:
parent
41907b25f0
commit
4e6e2574ab
@ -9,12 +9,10 @@ https://github.com/CompVis/taming-transformers
|
|||||||
# File modified by authors of InstructPix2Pix from original (https://github.com/CompVis/stable-diffusion).
|
# File modified by authors of InstructPix2Pix from original (https://github.com/CompVis/stable-diffusion).
|
||||||
# See more details in LICENSE.
|
# See more details in LICENSE.
|
||||||
|
|
||||||
import sys
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytorch_lightning as pl
|
import pytorch_lightning as pl
|
||||||
import pytorch_lightning.utilities.rank_zero
|
|
||||||
from torch.optim.lr_scheduler import LambdaLR
|
from torch.optim.lr_scheduler import LambdaLR
|
||||||
from einops import rearrange, repeat
|
from einops import rearrange, repeat
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
Loading…
Reference in New Issue
Block a user