auto-diffusers 2.0.36.dev0__py3-none-any.whl → 2.0.37__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 +15 -6
- auto_diffusers/pipeline_easy.py +708 -348
- {auto_diffusers-2.0.36.dev0.dist-info → auto_diffusers-2.0.37.dist-info}/METADATA +70 -43
- auto_diffusers-2.0.37.dist-info/RECORD +8 -0
- {auto_diffusers-2.0.36.dev0.dist-info → auto_diffusers-2.0.37.dist-info}/WHEEL +1 -1
- auto_diffusers-2.0.36.dev0.dist-info/RECORD +0 -8
- {auto_diffusers-2.0.36.dev0.dist-info → auto_diffusers-2.0.37.dist-info}/licenses/LICENSE +0 -0
- {auto_diffusers-2.0.36.dev0.dist-info → auto_diffusers-2.0.37.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: auto_diffusers
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.37
|
|
4
4
|
Summary: diffusers with search engine
|
|
5
5
|
Home-page: https://github.com/suzukimain/auto_diffusers
|
|
6
6
|
Author: suzukimain
|
|
@@ -22,6 +22,7 @@ Requires-Python: >=3.8.0
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: diffusers>=0.36.0
|
|
25
|
+
Requires-Dist: packaging>=20.0
|
|
25
26
|
Requires-Dist: transformers>=4.57.3
|
|
26
27
|
Dynamic: author
|
|
27
28
|
Dynamic: author-email
|
|
@@ -55,7 +56,7 @@ Dynamic: summary
|
|
|
55
56
|
>CONTENTS
|
|
56
57
|
+ [About The Project](#About_The_Project)
|
|
57
58
|
+ [How to use](#How_to_use)
|
|
58
|
-
+ [Search Hubs](#
|
|
59
|
+
+ [Search Hubs](#Search_Civitai_and_Huggingface)
|
|
59
60
|
- [Search Civitai](#Search_Civitai)
|
|
60
61
|
- [Search Huggingface](#Search_Huggingface)
|
|
61
62
|
+ [License](#License)
|
|
@@ -80,29 +81,55 @@ Enhance the functionality of diffusers.
|
|
|
80
81
|
|
|
81
82
|
</details>
|
|
82
83
|
|
|
83
|
-
##
|
|
84
|
+
## Regarding the Civitai API bug
|
|
85
|
+
|
|
86
|
+
The previously reported Civitai API issue has largely been resolved.
|
|
87
|
+
|
|
88
|
+
<details>
|
|
89
|
+
<summary>Previous issue description</summary>
|
|
90
|
+
|
|
91
|
+
Due to recent specification changes in the Civitai API, we were aware of the following issues:
|
|
92
|
+
- Reduced search accuracy
|
|
93
|
+
- Some search results not being returned
|
|
94
|
+
|
|
95
|
+
A temporary workaround has been implemented for the above issues, but since certain search results are still not returned, there is a possibility that some models may not be found.
|
|
96
|
+
|
|
97
|
+
link: [civitai/civitai#1757](https://github.com/civitai/civitai/issues/1757)
|
|
98
|
+
|
|
99
|
+
</details>
|
|
100
|
+
|
|
101
|
+
## How to use<a name = "How_to_use"></a>
|
|
84
102
|
|
|
85
103
|
```python
|
|
86
104
|
pip install --quiet auto_diffusers
|
|
87
105
|
```
|
|
88
106
|
|
|
89
107
|
```python
|
|
108
|
+
import torch
|
|
90
109
|
from auto_diffusers import EasyPipelineForText2Image
|
|
91
110
|
|
|
92
|
-
#
|
|
93
|
-
pipe = EasyPipelineForText2Image.from_huggingface(
|
|
111
|
+
# Load an official Hugging Face model
|
|
112
|
+
pipe = EasyPipelineForText2Image.from_huggingface(
|
|
113
|
+
"stabilityai/stable-diffusion-xl-base-1.0",
|
|
114
|
+
dtype=torch.float16,
|
|
115
|
+
).to("cuda")
|
|
94
116
|
img = pipe("cat").images[0]
|
|
95
117
|
img.save("cat.png")
|
|
96
118
|
|
|
97
119
|
|
|
98
120
|
# Search for Civitai
|
|
99
|
-
pipe = EasyPipelineForText2Image.from_civitai(
|
|
121
|
+
pipe = EasyPipelineForText2Image.from_civitai(
|
|
122
|
+
"search_word",
|
|
123
|
+
dtype=torch.float16,
|
|
124
|
+
).to("cuda")
|
|
100
125
|
image = pipe("cat").images[0]
|
|
101
126
|
image.save("cat.png")
|
|
102
127
|
|
|
103
128
|
```
|
|
104
129
|
|
|
105
|
-
|
|
130
|
+
Use `dtype` for new code. `torch_dtype` remains supported for compatibility, but do not pass both arguments at the same time.
|
|
131
|
+
|
|
132
|
+
## Search Civitai and Huggingface<a name = "Search_Civitai_and_Huggingface"></a>
|
|
106
133
|
|
|
107
134
|
```python
|
|
108
135
|
# Load Lora into the pipeline.
|
|
@@ -119,32 +146,32 @@ pipe.auto_load_textual_inversion("EasyNegative", token="EasyNegative")
|
|
|
119
146
|
|
|
120
147
|
#### `EasyPipeline.from_civitai` parameters
|
|
121
148
|
|
|
122
|
-
| Name | Type | Default | Description
|
|
149
|
+
| Name | Type | Default | Description |
|
|
123
150
|
|:---------------:|:----------------------:|:-------------:|:-----------------------------------------------------------------------------------:|
|
|
124
|
-
| search_word | string, Path |
|
|
125
|
-
| model_type | string | `Checkpoint` | The type of model to search for.
|
|
126
|
-
| base_model | string | None | Trained model tag (for example
|
|
127
|
-
|
|
|
151
|
+
| search_word | string, Path | required | The search query string. Can be a keyword, Civitai URL, local directory or file path. |
|
|
152
|
+
| model_type | string | `Checkpoint` | The type of model to search for. <br>(for example `Checkpoint`, `TextualInversion`, `Controlnet`, `LORA`, `Hypernetwork`, `AestheticGradient`, `Poses`) |
|
|
153
|
+
| base_model | string | None | Trained model tag (for example `SD 1.5`, `SD 3.5`, `SDXL 1.0`) |
|
|
154
|
+
| dtype | string, torch.dtype | None | Override the default `torch.dtype` and load the model with another dtype. |
|
|
128
155
|
| force_download | bool | False | Whether or not to force the (re-)download of the model weights and configuration files, overriding the cached versions if they exist. |
|
|
129
|
-
| cache_dir | string, Path
|
|
130
|
-
| resume | bool
|
|
131
|
-
| token | string
|
|
156
|
+
| cache_dir | string, Path | None | Path to the folder where cached files are stored. |
|
|
157
|
+
| resume | bool | False | Whether to resume an incomplete download. |
|
|
158
|
+
| token | string | None | API token for Civitai authentication. |
|
|
132
159
|
|
|
133
160
|
|
|
134
161
|
#### `search_civitai` parameters
|
|
135
162
|
|
|
136
|
-
| Name | Type | Default | Description
|
|
163
|
+
| Name | Type | Default | Description |
|
|
137
164
|
|:---------------:|:--------------:|:-------------:|:-----------------------------------------------------------------------------------:|
|
|
138
|
-
| search_word | string, Path |
|
|
139
|
-
| model_type | string | `Checkpoint` | The type of model to search for. <br>(for example `Checkpoint`, `TextualInversion`, `Controlnet`, `LORA`, `Hypernetwork`, `AestheticGradient`, `Poses`)
|
|
140
|
-
| base_model | string | None | Trained model tag (for example
|
|
141
|
-
| download | bool | False | Whether to download the model.
|
|
142
|
-
| force_download | bool | False | Whether to force the download if the model already exists.
|
|
143
|
-
| cache_dir | string, Path | None | Path to the folder where cached files are stored.
|
|
144
|
-
| resume | bool | False | Whether to resume an incomplete download.
|
|
145
|
-
| token | string | None | API token for Civitai authentication.
|
|
146
|
-
| include_params | bool | False | Whether to include parameters in the returned data.
|
|
147
|
-
| skip_error | bool | False | Whether to skip errors and return None.
|
|
165
|
+
| search_word | string, Path | required | The search query string. Can be a keyword, Civitai URL, local directory or file path. |
|
|
166
|
+
| model_type | string | `Checkpoint` | The type of model to search for. <br>(for example `Checkpoint`, `TextualInversion`, `Controlnet`, `LORA`, `Hypernetwork`, `AestheticGradient`, `Poses`) |
|
|
167
|
+
| base_model | string | None | Trained model tag (for example `SD 1.5`, `SD 3.5`, `SDXL 1.0`) |
|
|
168
|
+
| download | bool | False | Whether to download the model. |
|
|
169
|
+
| force_download | bool | False | Whether to force the download if the model already exists. |
|
|
170
|
+
| cache_dir | string, Path | None | Path to the folder where cached files are stored. |
|
|
171
|
+
| resume | bool | False | Whether to resume an incomplete download. |
|
|
172
|
+
| token | string | None | API token for Civitai authentication. |
|
|
173
|
+
| include_params | bool | False | Whether to include parameters in the returned data. |
|
|
174
|
+
| skip_error | bool | False | Whether to skip errors and return None. |
|
|
148
175
|
|
|
149
176
|
### Search Huggingface<a name = "Search_Huggingface"></a>
|
|
150
177
|
|
|
@@ -153,29 +180,29 @@ pipe.auto_load_textual_inversion("EasyNegative", token="EasyNegative")
|
|
|
153
180
|
|
|
154
181
|
#### `EasyPipeline.from_huggingface` parameters
|
|
155
182
|
|
|
156
|
-
| Name | Type | Default | Description
|
|
157
|
-
|
|
158
|
-
| search_word | string, Path |
|
|
159
|
-
| checkpoint_format | string | `single_file` | The format of the model checkpoint.<br
|
|
160
|
-
|
|
|
183
|
+
| Name | Type | Default | Description |
|
|
184
|
+
|:---------------------:|:-------------------:|:--------------:|:--------------------------------------------------------------------------------:|
|
|
185
|
+
| search_word | string, Path | required | The search query string. Can be a keyword, Hugging Face URL, local directory or file path, or a Hugging Face path (`<creator>/<repo>`). |
|
|
186
|
+
| checkpoint_format | string | `single_file` | The format of the model checkpoint.<br>- `single_file` to search for `single file checkpoint` <br>- `diffusers` to search for `multifolder diffusers format checkpoint` |
|
|
187
|
+
| dtype | string, torch.dtype | None | Override the default `torch.dtype` and load the model with another dtype. |
|
|
161
188
|
| force_download | bool | False | Whether or not to force the (re-)download of the model weights and configuration files, overriding the cached versions if they exist. |
|
|
162
|
-
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used.
|
|
163
|
-
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files.
|
|
189
|
+
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used. |
|
|
190
|
+
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files. |
|
|
164
191
|
|
|
165
192
|
|
|
166
193
|
#### `search_huggingface` parameters
|
|
167
194
|
|
|
168
|
-
| Name | Type | Default | Description
|
|
169
|
-
|
|
170
|
-
| search_word | string, Path |
|
|
171
|
-
| checkpoint_format | string | `single_file` | The format of the model checkpoint. <br
|
|
172
|
-
| pipeline_tag | string | None | Tag to filter models by pipeline.
|
|
173
|
-
| download | bool | False | Whether to download the model.
|
|
195
|
+
| Name | Type | Default | Description |
|
|
196
|
+
|:---------------------:|:-------------------:|:--------------:|:--------------------------------------------------------------------------------:|
|
|
197
|
+
| search_word | string, Path | required | The search query string. Can be a keyword, Hugging Face URL, local directory or file path, or a Hugging Face path (`<creator>/<repo>`). |
|
|
198
|
+
| checkpoint_format | string | `single_file` | The format of the model checkpoint. <br>- `single_file` to search for `single file checkpoint` <br>- `diffusers` to search for `multifolder diffusers format checkpoint` |
|
|
199
|
+
| pipeline_tag | string | None | Tag to filter models by pipeline. |
|
|
200
|
+
| download | bool | False | Whether to download the model. |
|
|
174
201
|
| force_download | bool | False | Whether or not to force the (re-)download of the model weights and configuration files, overriding the cached versions if they exist. |
|
|
175
|
-
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used.
|
|
176
|
-
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files.
|
|
177
|
-
| include_params | bool | False
|
|
178
|
-
| skip_error | bool | False
|
|
202
|
+
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used. |
|
|
203
|
+
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files. |
|
|
204
|
+
| include_params | bool | False | Whether to include parameters in the returned data. |
|
|
205
|
+
| skip_error | bool | False | Whether to skip errors and return None. |
|
|
179
206
|
|
|
180
207
|
|
|
181
208
|
## License<a name = "License"></a>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
auto_diffusers/__init__.py,sha256=INfx01hdyeutCNpPadk7rSY9fxLwpW1LOAOJBkKmy1M,430
|
|
2
|
+
auto_diffusers/pipeline_easy.py,sha256=-TNrEFDFpQEKo4lK9XYM-qSJCEQJOo85vXhalUUiedU,121653
|
|
3
|
+
auto_diffusers/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
auto_diffusers-2.0.37.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
5
|
+
auto_diffusers-2.0.37.dist-info/METADATA,sha256=8haZstRwObdVLCVpY3npuoNAPMWetbBLhDCe8HWdDhI,11969
|
|
6
|
+
auto_diffusers-2.0.37.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
7
|
+
auto_diffusers-2.0.37.dist-info/top_level.txt,sha256=iYkbnc9T-VKVnoCP6AufdXcDUfUaLZ_yMG-USuYf4UQ,15
|
|
8
|
+
auto_diffusers-2.0.37.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
auto_diffusers/__init__.py,sha256=-svambPs-5an50MNpuXDYPHgaxLw9_Tj5CZPSMFEAV0,232
|
|
2
|
-
auto_diffusers/pipeline_easy.py,sha256=UYSNcShZ2wGFQ_iShVPjcOLIBx2pNV7oUGeWuqvrwkQ,110175
|
|
3
|
-
auto_diffusers/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
auto_diffusers-2.0.36.dev0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
5
|
-
auto_diffusers-2.0.36.dev0.dist-info/METADATA,sha256=24iO7G4ooNcYYhdR9P8aBm_vyBI8FMVzqBCU1g7LrOw,10691
|
|
6
|
-
auto_diffusers-2.0.36.dev0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
auto_diffusers-2.0.36.dev0.dist-info/top_level.txt,sha256=iYkbnc9T-VKVnoCP6AufdXcDUfUaLZ_yMG-USuYf4UQ,15
|
|
8
|
-
auto_diffusers-2.0.36.dev0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|