jiuface commited on
Commit
96564c7
·
1 Parent(s): bece293
Files changed (2) hide show
  1. app.py +0 -10
  2. requirements.txt +1 -1
app.py CHANGED
@@ -5,12 +5,9 @@ import numpy as np
5
  import random
6
  import spaces
7
  import cv2
8
- from diffusers import DiffusionPipeline
9
- from diffusers import FluxInpaintPipeline
10
  import torch
11
  from PIL import Image, ImageFilter
12
  from huggingface_hub import login
13
- from diffusers import AutoencoderTiny, AutoencoderKL
14
  from huggingface_hub import hf_hub_download, HfFileSystem, ModelCard, snapshot_download
15
  import copy
16
  import random
@@ -19,14 +16,7 @@ import boto3
19
  from io import BytesIO
20
  from datetime import datetime
21
  from diffusers.utils import load_image, make_image_grid
22
-
23
  import json
24
- from preprocessor import Preprocessor
25
-
26
- # from diffusers.pipelines import FluxControlNetInpaintPipeline
27
- # from diffusers.models.controlnet_flux import FluxControlNetModel
28
- # from diffusers import UniPCMultistepScheduler
29
-
30
  from controlnet_flux import FluxControlNetModel
31
  from transformer_flux import FluxTransformer2DModel
32
  from pipeline_flux_controlnet_inpaint import FluxControlNetInpaintingPipeline
 
5
  import random
6
  import spaces
7
  import cv2
 
 
8
  import torch
9
  from PIL import Image, ImageFilter
10
  from huggingface_hub import login
 
11
  from huggingface_hub import hf_hub_download, HfFileSystem, ModelCard, snapshot_download
12
  import copy
13
  import random
 
16
  from io import BytesIO
17
  from datetime import datetime
18
  from diffusers.utils import load_image, make_image_grid
 
19
  import json
 
 
 
 
 
 
20
  from controlnet_flux import FluxControlNetModel
21
  from transformer_flux import FluxTransformer2DModel
22
  from pipeline_flux_controlnet_inpaint import FluxControlNetInpaintingPipeline
requirements.txt CHANGED
@@ -7,7 +7,7 @@ einops
7
  spaces
8
  gradio
9
  opencv-python
10
- git+https://github.com/huggingface/diffusers.git
11
  boto3
12
  sentencepiece
13
  peft
 
7
  spaces
8
  gradio
9
  opencv-python
10
+ diffusers==0.30.2
11
  boto3
12
  sentencepiece
13
  peft