auto-diffusers 1.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- auto_diffusers/__init__.py +6 -0
- auto_diffusers/checker/__init__.py +1 -0
- auto_diffusers/checker/get_checkpoint_type.py +139 -0
- auto_diffusers/checker/memorize_config.py +80 -0
- auto_diffusers/model_path/Perform_path_search.py +228 -0
- auto_diffusers/model_path/__init__.py +7 -0
- auto_diffusers/model_path/create_pipeline.py +253 -0
- auto_diffusers/model_path/flax_config.py +70 -0
- auto_diffusers/model_path/mix_class.py +15 -0
- auto_diffusers/model_path/search_civitai.py +385 -0
- auto_diffusers/model_path/search_hugface.py +418 -0
- auto_diffusers/py.typed +1 -0
- auto_diffusers/setup/Base_config.py +213 -0
- auto_diffusers/setup/__init__.py +1 -0
- auto_diffusers/setup/data_class.py +130 -0
- auto_diffusers/setup/device_config.py +42 -0
- auto_diffusers/setup/runtime_config.py +49 -0
- auto_diffusers/utils/__init__.py +1 -0
- auto_diffusers/utils/device_config.py +40 -0
- auto_diffusers/utils/get_custom_logger.py +22 -0
- auto_diffusers/utils/hide_warning.py +8 -0
- auto_diffusers/utils/process_bar.py +173 -0
- auto_diffusers/utils/run_download.py +140 -0
- auto_diffusers-1.3.1.dist-info/LICENSE +28 -0
- auto_diffusers-1.3.1.dist-info/METADATA +112 -0
- auto_diffusers-1.3.1.dist-info/RECORD +28 -0
- auto_diffusers-1.3.1.dist-info/WHEEL +5 -0
- auto_diffusers-1.3.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: auto_diffusers
|
|
3
|
+
Version: 1.3.1
|
|
4
|
+
Summary: Customized diffusers with model search and other functions.
|
|
5
|
+
Home-page: https://github.com/suzukimain/auto_diffusers
|
|
6
|
+
Author: suzukimain
|
|
7
|
+
Author-email: subarucosmosmain@gmail.com
|
|
8
|
+
License: BSD 3-Clause License
|
|
9
|
+
Keywords: diffusers model search deep learning diffusion jax pytorch stable diffusion
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Intended Audience :: Education
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: diffusers
|
|
24
|
+
Requires-Dist: transformers
|
|
25
|
+
Requires-Dist: huggingface-hub
|
|
26
|
+
Requires-Dist: requests
|
|
27
|
+
Requires-Dist: torch
|
|
28
|
+
Requires-Dist: jax
|
|
29
|
+
Requires-Dist: natsort
|
|
30
|
+
|
|
31
|
+
# auto_diffusers
|
|
32
|
+
|
|
33
|
+
<p>
|
|
34
|
+
<a href="https://github.com/suzukimain/auto_diffusers/blob/main/LICENSE"><img alt="GitHub release" src="https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=social"></a>
|
|
35
|
+
</p>
|
|
36
|
+
<p>
|
|
37
|
+
<a href="https://pepy.tech/project/auto_diffusers"><img alt="GitHub release" src="https://static.pepy.tech/badge/auto_diffusers"></a>
|
|
38
|
+
<a href="https://github.com/suzukimain/auto_diffusers/releases"><img alt="GitHub release" src="https://img.shields.io/github/release/suzukimain/auto_diffusers.svg"></a>
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div>
|
|
43
|
+
<img src=https://visit-counter.vercel.app/counter.png?page=https://github.com/suzukimain/auto_diffusers/main&c=00ffff&ff=flat&tb=viewer:%20&s=20>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
>CONTENTS
|
|
48
|
+
+ [About The Project](#About_The_Project)
|
|
49
|
+
+ [How to use](#How_to_use)
|
|
50
|
+
+ [Description](#Description)
|
|
51
|
+
+ [License](#License)
|
|
52
|
+
+ [Acknowledgement](#Acknowledgement)
|
|
53
|
+
|
|
54
|
+
## About The Project<a name = "About_The_Project"></a>
|
|
55
|
+
Enhance the functionality of diffusers.
|
|
56
|
+
* Search models from huggingface and Civitai.
|
|
57
|
+
(etc..)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## How to use<a name = "How_to_use"></a>
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
pip install diffusers
|
|
64
|
+
pip install auto_diffusers
|
|
65
|
+
|
|
66
|
+
from diffusers import StableDiffusionPipeline
|
|
67
|
+
from auto_diffusers import run_search
|
|
68
|
+
|
|
69
|
+
model_path = run_search(<keyword>, auto=True, download=False)
|
|
70
|
+
pipe = StableDIffusionPipeline.from_single_file(model_path)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Description<a name = "Description"></a>
|
|
74
|
+
> Arguments of `run_search`
|
|
75
|
+
>
|
|
76
|
+
| Name | Type | Default | Input Available | Description |
|
|
77
|
+
|:--------------:|:------:|:-----------:|:----------------:|:--------------------------------------------------------:|
|
|
78
|
+
| search_word | string | ー | [Details](#search-word) | Keywords to search models |
|
|
79
|
+
| auto | bool | True | ー | Minimize user input by selecting the highest-rated models. |
|
|
80
|
+
| download | bool | False | ー | Returns the path where the file was downloaded. |
|
|
81
|
+
| model_type | string | "Checkpoint"| 1. `Checkpoint`<br>2. `TextualInversion`<br>3. `Hypernetwork`<br>4. `AestheticGradient`<br>5. `LORA`<br>6. `Controlnet`<br>7. `Poses` | Valid only in Civitai. |
|
|
82
|
+
| return_path | bool | True | ー | Returns only the path or `[model_path, status_dict]`. |
|
|
83
|
+
| branch | string | "main" | ー | Specify the branches of huggingface and civitai. |
|
|
84
|
+
| local_file_only| bool | False | ー | Search local folders only. |
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<a id="search-word"></a>
|
|
88
|
+
<details open>
|
|
89
|
+
<summary>search_word</summary>
|
|
90
|
+
|
|
91
|
+
| Type | Description |
|
|
92
|
+
| :--------------------------: | :--------------------------------------------------------------------: |
|
|
93
|
+
| keyword | Keywords to search model<br> |
|
|
94
|
+
| url | Can be any URL other than huggingface or Civitai. |
|
|
95
|
+
| Local directory or file path | Search for files with the extensions: `.safetensors`, `.ckpt`, `.bin` |
|
|
96
|
+
| huggingface path | The following format: `< creator > / < repo >` |
|
|
97
|
+
|
|
98
|
+
</details>
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## License<a name = "License"></a>
|
|
102
|
+
In accordance with [BSD-3-Clause license](LICENSE)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## Acknowledgement<a name = "Acknowledgement"></a>
|
|
107
|
+
|
|
108
|
+
I have used open source resources and free tools in the creation of this project.
|
|
109
|
+
|
|
110
|
+
I would like to take this opportunity to thank the open source community and those who provided free tools.
|
|
111
|
+
|
|
112
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
auto_diffusers/__init__.py,sha256=22Jl2uvlI6mI8eE-spe8_jg7TFluCuQ8bV1Ce-a9ESE,223
|
|
2
|
+
auto_diffusers/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
auto_diffusers/checker/__init__.py,sha256=CeIA8xhkpls13fs3jUpkFL509_mW4bAK5kdrJW-GhWM,41
|
|
4
|
+
auto_diffusers/checker/get_checkpoint_type.py,sha256=StOVHaKtU0XDz0lr6tRP9u458E51-U1HPL1bP5o-bCg,6182
|
|
5
|
+
auto_diffusers/checker/memorize_config.py,sha256=OaIXnZJYA4vxabfzpMmmB-8n5XUB2RmwWvda397LNQM,2704
|
|
6
|
+
auto_diffusers/model_path/Perform_path_search.py,sha256=JPekeUmH0WdH4SzsqTkBnTOcXsbzAKzMnPqp7j-kTWs,9037
|
|
7
|
+
auto_diffusers/model_path/__init__.py,sha256=_HCMdsSwPJLy0eSLUWUlnTAGGt-vfZ4ap4E1X97TwDI,83
|
|
8
|
+
auto_diffusers/model_path/create_pipeline.py,sha256=mCf_-y-tIAZyz6FpM8ZfuazYsz5TMkb8-4gAoaT9ovA,10442
|
|
9
|
+
auto_diffusers/model_path/flax_config.py,sha256=hRFGYn0B4TYHr9DcxSQxWpgjWnHMBNLlqbBlFvt2PrQ,2703
|
|
10
|
+
auto_diffusers/model_path/mix_class.py,sha256=hsN4zHVSa_aSytALwE1_BkxEEaQF7-Qs0u7U5zfdAhY,315
|
|
11
|
+
auto_diffusers/model_path/search_civitai.py,sha256=ib0pxwtMXJKcwBQM0_YLpSuPCLeaq8otu_hMrcuC2jg,13589
|
|
12
|
+
auto_diffusers/model_path/search_hugface.py,sha256=xbgIP30hyJttcbMFsX61aZPdbLqNfOGpWzwGoTh4dbA,16906
|
|
13
|
+
auto_diffusers/setup/Base_config.py,sha256=6Ol1-9aA7r9zbXj6UfPJSKPtz9p8cjoAomdLSKJCC4c,5705
|
|
14
|
+
auto_diffusers/setup/__init__.py,sha256=Rweeh6U7d1QCr4GYy9ApcDt4nqjCAEdTf1PQlGAd6mg,37
|
|
15
|
+
auto_diffusers/setup/data_class.py,sha256=KRdYBp2ftBulF5b1ayOoXDHh6U0971GFrareL64rsX0,5359
|
|
16
|
+
auto_diffusers/setup/device_config.py,sha256=_MYibM5qhBlfAlkHiAKHuaYaOacwDrFkiDmCaPzVYhQ,961
|
|
17
|
+
auto_diffusers/setup/runtime_config.py,sha256=7fe_CA0elfrvP-1zE5iEKb8LqWb-WtCpc3oV_WSwvvc,1514
|
|
18
|
+
auto_diffusers/utils/__init__.py,sha256=KUdilmrFVMPVhVWyP10TPVeO_vJG2n29zN2oQiG0OV8,34
|
|
19
|
+
auto_diffusers/utils/device_config.py,sha256=M196cFg7kuZsMTicPGeucKCNkjFu_oBmQIsK0gQnnU8,948
|
|
20
|
+
auto_diffusers/utils/get_custom_logger.py,sha256=y8cRyt9y3fFR6eiXiXeV0Nk100F_osmpgpC-uTct_7w,633
|
|
21
|
+
auto_diffusers/utils/hide_warning.py,sha256=jfanB36r5KyzPvIjw68kP4lkD0I-gs2K_Zk6Q-QC0X8,208
|
|
22
|
+
auto_diffusers/utils/process_bar.py,sha256=0quPhArlQGUfi6uniokUoDNmR_6eNeL9QPEiXtXtOYQ,4922
|
|
23
|
+
auto_diffusers/utils/run_download.py,sha256=PzKBEYjdQzOuEc5moxwGt3N9VTD7h2qCUJzGx9vFpOo,3990
|
|
24
|
+
auto_diffusers-1.3.1.dist-info/LICENSE,sha256=zf63-8GgkO9_0eeAUPRJu_yrc7xhedOdjlJzi6WhelM,1497
|
|
25
|
+
auto_diffusers-1.3.1.dist-info/METADATA,sha256=ICp2ll2E9OD-5WQupMPADnpguUWa4lOwYnC4mSEjCRg,4689
|
|
26
|
+
auto_diffusers-1.3.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
27
|
+
auto_diffusers-1.3.1.dist-info/top_level.txt,sha256=iYkbnc9T-VKVnoCP6AufdXcDUfUaLZ_yMG-USuYf4UQ,15
|
|
28
|
+
auto_diffusers-1.3.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
auto_diffusers
|