Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,7 @@ import torch
|
|
| 11 |
from inference import inference
|
| 12 |
from diffusers import StableDiffusionInstructPix2PixPipeline, UNet2DModel, AutoencoderKL, DDPMScheduler
|
| 13 |
from transformers import CLIPTokenizer, CLIPTextModel, CLIPImageProcessor
|
|
|
|
| 14 |
|
| 15 |
class UNetNoCondWrapper(nn.Module):
|
| 16 |
def __init__(self, base_unet: UNet2DModel):
|
|
|
|
| 11 |
from inference import inference
|
| 12 |
from diffusers import StableDiffusionInstructPix2PixPipeline, UNet2DModel, AutoencoderKL, DDPMScheduler
|
| 13 |
from transformers import CLIPTokenizer, CLIPTextModel, CLIPImageProcessor
|
| 14 |
+
import torch.nn as nn
|
| 15 |
|
| 16 |
class UNetNoCondWrapper(nn.Module):
|
| 17 |
def __init__(self, base_unet: UNet2DModel):
|