From e7470bbd9700a7af10adeea021e566757ee2dfd5 Mon Sep 17 00:00:00 2001 From: binbinHan Date: Wed, 31 Jan 2024 04:09:44 +0800 Subject: [PATCH] rename_diffusers_extension_to_onediffx (#593) --- .gitignore | 2 +- README_ENTERPRISE.md | 2 +- benchmarks/image_to_video.py | 4 +-- benchmarks/run_image_to_video_benchmark.sh | 2 +- benchmarks/run_text_to_image_benchmark.sh | 2 +- benchmarks/text_to_image.py | 4 +-- examples/text_to_image_deep_cache_sd.py | 2 +- examples/text_to_image_deep_cache_sdxl.py | 2 +- ...ext_to_image_deep_cache_sdxl_enterprise.py | 2 +- examples/text_to_image_sdxl_lora.py | 4 +-- onediff_diffusers_extensions/README.md | 32 +++++++++---------- .../__init__.py | 0 .../compilers/__init__.py | 0 .../compilers/diffusion_pipeline_compiler.py | 2 +- .../deep_cache/README.md | 0 .../deep_cache/__init__.py | 0 .../deep_cache/models/__init__.py | 0 .../models/fast_unet_2d_condition.py | 0 .../fast_unet_spatio_temporal_condition.py | 0 .../deep_cache/models/pipeline_utils.py | 4 +-- .../deep_cache/models/unet_2d_blocks.py | 0 .../deep_cache/models/unet_2d_condition.py | 0 .../deep_cache/models/unet_3d_blocks.py | 0 .../models/unet_spatio_temporal_condition.py | 0 .../deep_cache/pipeline_stable_diffusion.py | 0 .../pipeline_stable_diffusion_xl.py | 0 .../pipeline_stable_video_diffusion.py | 0 .../utils/__init__.py | 0 .../utils/lora.py | 0 .../utils/patch_image_processor.py | 0 onediff_diffusers_extensions/setup.py | 2 +- 31 files changed, 33 insertions(+), 33 deletions(-) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/__init__.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/compilers/__init__.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/compilers/diffusion_pipeline_compiler.py (92%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/README.md (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/__init__.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/__init__.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/fast_unet_2d_condition.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/fast_unet_spatio_temporal_condition.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/pipeline_utils.py (99%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/unet_2d_blocks.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/unet_2d_condition.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/unet_3d_blocks.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/models/unet_spatio_temporal_condition.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/pipeline_stable_diffusion.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/pipeline_stable_diffusion_xl.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/deep_cache/pipeline_stable_video_diffusion.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/utils/__init__.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/utils/lora.py (100%) rename onediff_diffusers_extensions/{diffusers_extensions => onediffx}/utils/patch_image_processor.py (100%) diff --git a/.gitignore b/.gitignore index 158cf18a2..175c29336 100644 --- a/.gitignore +++ b/.gitignore @@ -169,7 +169,7 @@ tags op_prof.csv *.lock -*out.png +*.png log unet_graphs *.json diff --git a/README_ENTERPRISE.md b/README_ENTERPRISE.md index ca3ccc21e..afcc0bad6 100644 --- a/README_ENTERPRISE.md +++ b/README_ENTERPRISE.md @@ -122,7 +122,7 @@ Type `python3 text_to_image_sdxl_enterprise.py -h` for more options. #### SDXL + DeepCache -Ensure that you have installed [OneDiff Diffusers Extensions](onediff_diffusers_extensions/README.md#install-and-setup) and then run [text_to_image_deep_cache_sdxl_enterprise.py](examples/text_to_image_deep_cache_sdxl_enterprise.py) by command: +Ensure that you have installed [OneDiffX](onediff_diffusers_extensions/README.md#install-and-setup) and then run [text_to_image_deep_cache_sdxl_enterprise.py](examples/text_to_image_deep_cache_sdxl_enterprise.py) by command: ```bash python text_to_image_deep_cache_sdxl_enterprise.py --model $model_path --saved_image output_deepcache.png diff --git a/benchmarks/image_to_video.py b/benchmarks/image_to_video.py index 18d6c3040..e8e91c1da 100644 --- a/benchmarks/image_to_video.py +++ b/benchmarks/image_to_video.py @@ -35,7 +35,7 @@ import torch from diffusers.utils import load_image, export_to_video -from diffusers_extensions import compile_pipe, compiler_config +from onediffx import compile_pipe, compiler_config def parse_args(): @@ -160,7 +160,7 @@ def callback_on_step_end(self, pipe, i, t, callback_kwargs={}): def main(): args = parse_args() if args.deepcache: - from diffusers_extensions.deep_cache import StableVideoDiffusionPipeline + from onediffx.deep_cache import StableVideoDiffusionPipeline else: from diffusers import StableVideoDiffusionPipeline diff --git a/benchmarks/run_image_to_video_benchmark.sh b/benchmarks/run_image_to_video_benchmark.sh index d439ba051..4e516c871 100755 --- a/benchmarks/run_image_to_video_benchmark.sh +++ b/benchmarks/run_image_to_video_benchmark.sh @@ -53,7 +53,7 @@ else [ -d ${MODEL_DIR}/stable-video-diffusion-img2vid-xt ] && SVD_XT_MODEL_PATH=${MODEL_DIR}/stable-video-diffusion-img2vid-xt python3 -c "import onediff_quant" && echo "enable quant model" && BENCHMARK_QUANT_MODEL=1 || echo "disable quant model" - # python3 -c "import diffusers_extensions" && echo "enable deepcache model" && BENCHMARK_DEEP_CACHE_MODEL=1 || echo "disable deepcache model" + # python3 -c "import onediffx" && echo "enable deepcache model" && BENCHMARK_DEEP_CACHE_MODEL=1 || echo "disable deepcache model" SVD_XT_QUANT_MODEL_PATH=${MODEL_DIR}/stable-video-diffusion-img2vid-xt-int8 SVD_XT_DEEP_CACHE_QUANT_MODEL_PATH=${MODEL_DIR}/stable-video-diffusion-img2vid-xt-deepcache-int8 diff --git a/benchmarks/run_text_to_image_benchmark.sh b/benchmarks/run_text_to_image_benchmark.sh index c7cec906d..273a419b9 100755 --- a/benchmarks/run_text_to_image_benchmark.sh +++ b/benchmarks/run_text_to_image_benchmark.sh @@ -57,7 +57,7 @@ else [ -d ${MODEL_DIR}/stable-diffusion-xl-base-1.0 ] && SDXL_MODEL_PATH=${MODEL_DIR}/stable-diffusion-xl-base-1.0 python3 -c "import onediff_quant" && echo "enable quant model" && BENCHMARK_QUANT_MODEL=1 || echo "disable quant model" - # python3 -c "import diffusers_extensions" && echo "enable deepcache model" && BENCHMARK_DEEP_CACHE_MODEL=1 || echo "disable deepcache model" + # python3 -c "import onediffx" && echo "enable deepcache model" && BENCHMARK_DEEP_CACHE_MODEL=1 || echo "disable deepcache model" SDXL_QUANT_MODEL_PATH=${MODEL_DIR}/stable-diffusion-xl-base-1.0-int8 SDXL_DEEP_CACHE_QUANT_MODEL_PATH=${MODEL_DIR}/stable-diffusion-xl-base-1.0-deepcache-int8 diff --git a/benchmarks/text_to_image.py b/benchmarks/text_to_image.py index 148a627c2..f8925fa03 100644 --- a/benchmarks/text_to_image.py +++ b/benchmarks/text_to_image.py @@ -25,7 +25,7 @@ import torch from PIL import Image, ImageDraw import oneflow as flow -from diffusers_extensions import compile_pipe +from onediffx import compile_pipe def parse_args(): @@ -144,7 +144,7 @@ def main(): args = parse_args() if args.input_image is None: if args.deepcache: - from diffusers_extensions.deep_cache import ( + from onediffx.deep_cache import ( StableDiffusionXLPipeline as pipeline_cls, ) else: diff --git a/examples/text_to_image_deep_cache_sd.py b/examples/text_to_image_deep_cache_sd.py index 1a82b6d30..ff1f9b280 100644 --- a/examples/text_to_image_deep_cache_sd.py +++ b/examples/text_to_image_deep_cache_sd.py @@ -10,7 +10,7 @@ from onediff.infer_compiler import oneflow_compile from onediff.schedulers import EulerDiscreteScheduler -from diffusers_extensions.deep_cache import StableDiffusionPipeline +from onediffx.deep_cache import StableDiffusionPipeline parser = argparse.ArgumentParser() parser.add_argument( diff --git a/examples/text_to_image_deep_cache_sdxl.py b/examples/text_to_image_deep_cache_sdxl.py index d4cfc5d0f..99c4ac7d3 100644 --- a/examples/text_to_image_deep_cache_sdxl.py +++ b/examples/text_to_image_deep_cache_sdxl.py @@ -10,7 +10,7 @@ from onediff.infer_compiler import oneflow_compile from onediff.schedulers import EulerDiscreteScheduler -from diffusers_extensions.deep_cache import StableDiffusionXLPipeline +from onediffx.deep_cache import StableDiffusionXLPipeline parser = argparse.ArgumentParser() parser.add_argument( diff --git a/examples/text_to_image_deep_cache_sdxl_enterprise.py b/examples/text_to_image_deep_cache_sdxl_enterprise.py index 48cc3f8f1..49dfed627 100644 --- a/examples/text_to_image_deep_cache_sdxl_enterprise.py +++ b/examples/text_to_image_deep_cache_sdxl_enterprise.py @@ -61,7 +61,7 @@ def parse_args(): os.path.join(args.model, "calibrate_info.txt") ), f"calibrate_info.txt is required in args.model ({args.model})" -from diffusers_extensions.deep_cache import StableDiffusionXLPipeline +from onediffx.deep_cache import StableDiffusionXLPipeline import onediff_quant from onediff_quant.utils import replace_sub_module_with_quantizable_module diff --git a/examples/text_to_image_sdxl_lora.py b/examples/text_to_image_sdxl_lora.py index 13c86258e..bf154c1a7 100644 --- a/examples/text_to_image_sdxl_lora.py +++ b/examples/text_to_image_sdxl_lora.py @@ -5,9 +5,9 @@ from onediff.infer_compiler.utils import TensorInplaceAssign try: - from diffusers_extensions.utils.lora import load_and_fuse_lora, unfuse_lora + from onediffx.utils.lora import load_and_fuse_lora, unfuse_lora except ImportError: - raise RuntimeError("OneDiff diffusers_extensions is not installed. Please check onediff_diffusers_extensions/README.md to install diffusers_extensions.") + raise RuntimeError("OneDiff onediffx is not installed. Please check onediff_diffusers_extensions/README.md to install onediffx.") MODEL_ID = "stabilityai/stable-diffusion-xl-base-1.0" pipe = DiffusionPipeline.from_pretrained( diff --git a/onediff_diffusers_extensions/README.md b/onediff_diffusers_extensions/README.md index 0051ce3e3..b038aaf57 100644 --- a/onediff_diffusers_extensions/README.md +++ b/onediff_diffusers_extensions/README.md @@ -1,18 +1,18 @@ -# OneDiff Diffusers Extensions +# OneDiffX -OneDiff diffusers extensions include multiple popular accelerated versions of the AIGC algorithm, such as DeepCache, which you would have a hard time finding elsewhere. +OneDiffX include multiple popular accelerated versions of the AIGC algorithm, such as DeepCache, which you would have a hard time finding elsewhere. - [Install and Setup](#install-and-setup) - [DeepCache Speedup](#deepcache-speedup) - - [Stable Diffusion XL](#run-stable-diffusion-xl-with-onediff-diffusers-extensions) - - [Stable Diffuison 1.5](#run-stable-diffusion-15-with-onediff-diffusers-extensions) + - [Stable Diffusion XL](#run-stable-diffusion-xl-with-onediffx) + - [Stable Diffuison 1.5](#run-stable-diffusion-15-with-onediffx) - [Contact](#contact) ## Install and setup 1. Follow the steps [here](https://github.com/siliconflow/onediff?tab=readme-ov-file#install-from-source) to install onediff. -2. Install diffusers_extensions by following these steps +2. Install onediffx by following these steps ``` git clone https://github.com/siliconflow/onediff.git @@ -21,13 +21,13 @@ OneDiff diffusers extensions include multiple popular accelerated versions of th ## DeepCache speedup -### Run Stable Diffusion XL with OneDiff diffusers extensions +### Run Stable Diffusion XL with OneDiffX ```python import torch -from diffusers_extensions import compile_pipe -from diffusers_extensions.deep_cache import StableDiffusionXLPipeline +from onediffx import compile_pipe +from onediffx.deep_cache import StableDiffusionXLPipeline pipe = StableDiffusionXLPipeline.from_pretrained( "stabilityai/stable-diffusion-xl-base-1.0", @@ -60,8 +60,8 @@ deepcache_output = pipe( ```python import torch -from diffusers_extensions import compile_pipe -from diffusers_extensions.deep_cache import StableDiffusionPipeline +from onediffx import compile_pipe +from onediffx.deep_cache import StableDiffusionPipeline pipe = StableDiffusionPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", @@ -89,14 +89,14 @@ deepcache_output = pipe( ).images[0] ``` -### Run Stable Video Diffusion with OneDiff diffusers extensions +### Run Stable Video Diffusion with OneDiffX ```python import torch from diffusers.utils import load_image, export_to_video -from diffusers_extensions import compile_pipe, compiler_config -from diffusers_extensions.deep_cache import StableVideoDiffusionPipeline +from onediffx import compile_pipe, compiler_config +from onediffx.deep_cache import StableVideoDiffusionPipeline pipe = StableDiffusionPipeline.from_pretrained( "stabilityai/stable-video-diffusion-img2vid-xt", @@ -139,13 +139,13 @@ If you possess a OneDiff Enterprise license key, you can access instructions on ## LoRA loading and switching speed up -OneDiff provides a faster implementation of loading LoRA, by invoking `diffusers_extensions.utils.lora.load_and_fuse_lora` you can load and fuse LoRA to pipeline. +OneDiff provides a faster implementation of loading LoRA, by invoking `onediffx.utils.lora.load_and_fuse_lora` you can load and fuse LoRA to pipeline. ```python import torch from diffusers import DiffusionPipeline -from diffusers_extensions import compile_pipe -from diffusers_extensions.utils.lora import load_and_fuse_lora, unfuse_lora +from onediffx import compile_pipe +from onediffx.utils.lora import load_and_fuse_lora, unfuse_lora MODEL_ID = "stabilityai/stable-diffusion-xl-base-1.0" pipe = DiffusionPipeline.from_pretrained( diff --git a/onediff_diffusers_extensions/diffusers_extensions/__init__.py b/onediff_diffusers_extensions/onediffx/__init__.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/__init__.py rename to onediff_diffusers_extensions/onediffx/__init__.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/compilers/__init__.py b/onediff_diffusers_extensions/onediffx/compilers/__init__.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/compilers/__init__.py rename to onediff_diffusers_extensions/onediffx/compilers/__init__.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/compilers/diffusion_pipeline_compiler.py b/onediff_diffusers_extensions/onediffx/compilers/diffusion_pipeline_compiler.py similarity index 92% rename from onediff_diffusers_extensions/diffusers_extensions/compilers/diffusion_pipeline_compiler.py rename to onediff_diffusers_extensions/onediffx/compilers/diffusion_pipeline_compiler.py index 709bd1679..7e17c7eb6 100644 --- a/onediff_diffusers_extensions/diffusers_extensions/compilers/diffusion_pipeline_compiler.py +++ b/onediff_diffusers_extensions/onediffx/compilers/diffusion_pipeline_compiler.py @@ -50,7 +50,7 @@ def compile_pipe( if 'image_processor' not in ignores: print("Patching image_processor") - from diffusers_extensions.utils.patch_image_processor import patch_image_prcessor as patch_image_prcessor_ + from onediffx.utils.patch_image_processor import patch_image_prcessor as patch_image_prcessor_ patch_image_prcessor_(pipe.image_processor) return pipe diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/README.md b/onediff_diffusers_extensions/onediffx/deep_cache/README.md similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/README.md rename to onediff_diffusers_extensions/onediffx/deep_cache/README.md diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/__init__.py b/onediff_diffusers_extensions/onediffx/deep_cache/__init__.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/__init__.py rename to onediff_diffusers_extensions/onediffx/deep_cache/__init__.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/__init__.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/__init__.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/__init__.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/__init__.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/fast_unet_2d_condition.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/fast_unet_2d_condition.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/fast_unet_2d_condition.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/fast_unet_2d_condition.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/fast_unet_spatio_temporal_condition.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/fast_unet_spatio_temporal_condition.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/fast_unet_spatio_temporal_condition.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/fast_unet_spatio_temporal_condition.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/pipeline_utils.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/pipeline_utils.py similarity index 99% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/pipeline_utils.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/pipeline_utils.py index 8a1621844..eb2217cd2 100644 --- a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/pipeline_utils.py +++ b/onediff_diffusers_extensions/onediffx/deep_cache/models/pipeline_utils.py @@ -102,11 +102,11 @@ def get_class_obj_and_candidates(library_name, class_name, importable_classes, p else: # else we just import it from the library. if class_name == 'UNet2DConditionModel': - library_name = "diffusers_extensions.deep_cache.models.unet_2d_condition" + library_name = "onediffx.deep_cache.models.unet_2d_condition" if class_name == 'UNetSpatioTemporalConditionModel': assert diffusers_version >= version.parse("0.24.0"), "SVD not support in diffusers-" + diffusers_version - library_name = "diffusers_extensions.deep_cache.models.unet_spatio_temporal_condition" + library_name = "onediffx.deep_cache.models.unet_spatio_temporal_condition" library = importlib.import_module(library_name) class_obj = getattr(library, class_name) diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_2d_blocks.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/unet_2d_blocks.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_2d_blocks.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/unet_2d_blocks.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_2d_condition.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/unet_2d_condition.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_2d_condition.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/unet_2d_condition.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_3d_blocks.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/unet_3d_blocks.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_3d_blocks.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/unet_3d_blocks.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_spatio_temporal_condition.py b/onediff_diffusers_extensions/onediffx/deep_cache/models/unet_spatio_temporal_condition.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/models/unet_spatio_temporal_condition.py rename to onediff_diffusers_extensions/onediffx/deep_cache/models/unet_spatio_temporal_condition.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/pipeline_stable_diffusion.py b/onediff_diffusers_extensions/onediffx/deep_cache/pipeline_stable_diffusion.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/pipeline_stable_diffusion.py rename to onediff_diffusers_extensions/onediffx/deep_cache/pipeline_stable_diffusion.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/pipeline_stable_diffusion_xl.py b/onediff_diffusers_extensions/onediffx/deep_cache/pipeline_stable_diffusion_xl.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/pipeline_stable_diffusion_xl.py rename to onediff_diffusers_extensions/onediffx/deep_cache/pipeline_stable_diffusion_xl.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/deep_cache/pipeline_stable_video_diffusion.py b/onediff_diffusers_extensions/onediffx/deep_cache/pipeline_stable_video_diffusion.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/deep_cache/pipeline_stable_video_diffusion.py rename to onediff_diffusers_extensions/onediffx/deep_cache/pipeline_stable_video_diffusion.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/utils/__init__.py b/onediff_diffusers_extensions/onediffx/utils/__init__.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/utils/__init__.py rename to onediff_diffusers_extensions/onediffx/utils/__init__.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/utils/lora.py b/onediff_diffusers_extensions/onediffx/utils/lora.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/utils/lora.py rename to onediff_diffusers_extensions/onediffx/utils/lora.py diff --git a/onediff_diffusers_extensions/diffusers_extensions/utils/patch_image_processor.py b/onediff_diffusers_extensions/onediffx/utils/patch_image_processor.py similarity index 100% rename from onediff_diffusers_extensions/diffusers_extensions/utils/patch_image_processor.py rename to onediff_diffusers_extensions/onediffx/utils/patch_image_processor.py diff --git a/onediff_diffusers_extensions/setup.py b/onediff_diffusers_extensions/setup.py index 7d32be63e..49efd6873 100644 --- a/onediff_diffusers_extensions/setup.py +++ b/onediff_diffusers_extensions/setup.py @@ -1,7 +1,7 @@ from setuptools import find_packages, setup setup( - name="diffusers_extensions", + name="onediffx", version="0.1.0", description="onediff extensions for diffusers", url="https://github.com/siliconflow/onediff",