Spaces:
Runtime error
Runtime error
fix debug
Browse files- README.md +1 -1
- inference/__pycache__/inference_utils.cpython-310.pyc +0 -0
- inference/__pycache__/mask_generation.cpython-310.pyc +0 -0
- inference/__pycache__/pipeline.cpython-310.pyc +0 -0
- inference/pipeline.py +3 -3
- models/__pycache__/attention_custom.cpython-310.pyc +0 -0
- models/__pycache__/attention_processor_custom_cross.cpython-310.pyc +0 -0
- models/__pycache__/base_vision.cpython-310.pyc +0 -0
- models/__pycache__/dino.cpython-310.pyc +0 -0
- models/__pycache__/image_encoder_siglipdino_shallowdeep.cpython-310.pyc +0 -0
- models/__pycache__/projectors.cpython-310.pyc +0 -0
- models/__pycache__/sigclip.cpython-310.pyc +0 -0
- models/__pycache__/text.cpython-310.pyc +0 -0
- models/__pycache__/transformer_2d_custom.cpython-310.pyc +0 -0
- models/__pycache__/unet_2d_blocks_custom.cpython-310.pyc +0 -0
- models/__pycache__/unet_2d_condition_custom.cpython-310.pyc +0 -0
- models/__pycache__/vae.cpython-310.pyc +0 -0
- requirements.txt +1 -1
- schedulers/__pycache__/base.cpython-310.pyc +0 -0
- schedulers/__pycache__/ddim.cpython-310.pyc +0 -0
- schedulers/__pycache__/dpm_s.cpython-310.pyc +0 -0
- schedulers/__pycache__/utils.cpython-310.pyc +0 -0
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
title: RealCustom
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
|
|
|
| 1 |
---
|
| 2 |
title: RealCustom
|
| 3 |
+
emoji: 💥
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
inference/__pycache__/inference_utils.cpython-310.pyc
DELETED
|
Binary file (1.58 kB)
|
|
|
inference/__pycache__/mask_generation.cpython-310.pyc
DELETED
|
Binary file (2.58 kB)
|
|
|
inference/__pycache__/pipeline.cpython-310.pyc
DELETED
|
Binary file (10.2 kB)
|
|
|
inference/pipeline.py
CHANGED
|
@@ -28,8 +28,8 @@ from schedulers.ddim import DDIMScheduler
|
|
| 28 |
from schedulers.dpm_s import DPMSolverSingleStepScheduler
|
| 29 |
from schedulers.utils import get_betas
|
| 30 |
|
| 31 |
-
from inference_utils import find_phrase_positions_in_text, classifier_free_guidance_image_prompt_cascade
|
| 32 |
-
from mask_generation import mask_generation
|
| 33 |
from utils import instantiate_from_config
|
| 34 |
|
| 35 |
from tqdm import tqdm
|
|
@@ -57,7 +57,7 @@ class RealCustomInferencePipeline:
|
|
| 57 |
snapshot_download(
|
| 58 |
repo_id="bytedance-research/RealCustom",
|
| 59 |
repo_type="model",
|
| 60 |
-
local_dir="
|
| 61 |
allow_patterns="ckpts/**", # 只下载 ckpts 文件夹内容
|
| 62 |
local_dir_use_symlinks=False # 直接存储文件而非符号链接
|
| 63 |
)
|
|
|
|
| 28 |
from schedulers.dpm_s import DPMSolverSingleStepScheduler
|
| 29 |
from schedulers.utils import get_betas
|
| 30 |
|
| 31 |
+
from inference.inference_utils import find_phrase_positions_in_text, classifier_free_guidance_image_prompt_cascade
|
| 32 |
+
from inference.mask_generation import mask_generation
|
| 33 |
from utils import instantiate_from_config
|
| 34 |
|
| 35 |
from tqdm import tqdm
|
|
|
|
| 57 |
snapshot_download(
|
| 58 |
repo_id="bytedance-research/RealCustom",
|
| 59 |
repo_type="model",
|
| 60 |
+
local_dir="./", # 指定本地目录
|
| 61 |
allow_patterns="ckpts/**", # 只下载 ckpts 文件夹内容
|
| 62 |
local_dir_use_symlinks=False # 直接存储文件而非符号链接
|
| 63 |
)
|
models/__pycache__/attention_custom.cpython-310.pyc
DELETED
|
Binary file (12.5 kB)
|
|
|
models/__pycache__/attention_processor_custom_cross.cpython-310.pyc
DELETED
|
Binary file (38.7 kB)
|
|
|
models/__pycache__/base_vision.cpython-310.pyc
DELETED
|
Binary file (8.28 kB)
|
|
|
models/__pycache__/dino.cpython-310.pyc
DELETED
|
Binary file (7.08 kB)
|
|
|
models/__pycache__/image_encoder_siglipdino_shallowdeep.cpython-310.pyc
DELETED
|
Binary file (4.23 kB)
|
|
|
models/__pycache__/projectors.cpython-310.pyc
DELETED
|
Binary file (4.33 kB)
|
|
|
models/__pycache__/sigclip.cpython-310.pyc
DELETED
|
Binary file (5.81 kB)
|
|
|
models/__pycache__/text.cpython-310.pyc
DELETED
|
Binary file (2.88 kB)
|
|
|
models/__pycache__/transformer_2d_custom.cpython-310.pyc
DELETED
|
Binary file (11.2 kB)
|
|
|
models/__pycache__/unet_2d_blocks_custom.cpython-310.pyc
DELETED
|
Binary file (52.5 kB)
|
|
|
models/__pycache__/unet_2d_condition_custom.cpython-310.pyc
DELETED
|
Binary file (31.1 kB)
|
|
|
models/__pycache__/vae.cpython-310.pyc
DELETED
|
Binary file (1.08 kB)
|
|
|
requirements.txt
CHANGED
|
@@ -21,7 +21,7 @@ expecttest # Needed for compile
|
|
| 21 |
accelerate==0.24.1 # model saving bugs when accelerate==0.25.0
|
| 22 |
|
| 23 |
# Inference
|
| 24 |
-
av==10.0.0
|
| 25 |
pims==0.6.1
|
| 26 |
opencv-python-headless==4.6.0.66
|
| 27 |
|
|
|
|
| 21 |
accelerate==0.24.1 # model saving bugs when accelerate==0.25.0
|
| 22 |
|
| 23 |
# Inference
|
| 24 |
+
# av==10.0.0
|
| 25 |
pims==0.6.1
|
| 26 |
opencv-python-headless==4.6.0.66
|
| 27 |
|
schedulers/__pycache__/base.cpython-310.pyc
DELETED
|
Binary file (3.63 kB)
|
|
|
schedulers/__pycache__/ddim.cpython-310.pyc
DELETED
|
Binary file (1.98 kB)
|
|
|
schedulers/__pycache__/dpm_s.cpython-310.pyc
DELETED
|
Binary file (6.09 kB)
|
|
|
schedulers/__pycache__/utils.cpython-310.pyc
DELETED
|
Binary file (3.8 kB)
|
|
|