mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Formatting sd_hijack_ddpm_v1.py
This commit is contained in:
parent
8f450321fe
commit
49779413aa
@ -9,13 +9,13 @@ 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
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from torchvision.utils import make_grid
|
from torchvision.utils import make_grid
|
||||||
import pytorch_lightning.utilities.rank_zero
|
|
||||||
sys.modules['pytorch_lightning.utilities.distributed'] = sys.modules['pytorch_lightning.utilities.rank_zero']
|
sys.modules['pytorch_lightning.utilities.distributed'] = sys.modules['pytorch_lightning.utilities.rank_zero']
|
||||||
from pytorch_lightning.utilities.rank_zero import rank_zero_only
|
from pytorch_lightning.utilities.rank_zero import rank_zero_only
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user