auto-diffusers 2.0.36.dev1__tar.gz → 2.0.38__tar.gz
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-2.0.36.dev1/src/auto_diffusers.egg-info → auto_diffusers-2.0.38}/PKG-INFO +63 -45
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/README.md +61 -44
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/setup.py +18 -12
- auto_diffusers-2.0.38/src/auto_diffusers/__init__.py +19 -0
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/src/auto_diffusers/pipeline_easy.py +468 -429
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38/src/auto_diffusers.egg-info}/PKG-INFO +63 -45
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/src/auto_diffusers.egg-info/SOURCES.txt +2 -1
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/src/auto_diffusers.egg-info/requires.txt +1 -0
- auto_diffusers-2.0.38/tests/test_pipeline_easy.py +293 -0
- auto_diffusers-2.0.36.dev1/src/auto_diffusers/__init__.py +0 -10
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/LICENSE +0 -0
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/MANIFEST.in +0 -0
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/setup.cfg +0 -0
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/src/auto_diffusers/py.typed +0 -0
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/src/auto_diffusers.egg-info/dependency_links.txt +0 -0
- {auto_diffusers-2.0.36.dev1 → auto_diffusers-2.0.38}/src/auto_diffusers.egg-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.38
|
|
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)
|
|
@@ -66,7 +67,7 @@ Dynamic: summary
|
|
|
66
67
|
|
|
67
68
|
Enhance the functionality of diffusers.
|
|
68
69
|
* Search models from Hugging Face and Civitai.
|
|
69
|
-
* Officially listed in the [Hugging Face Diffusers Community Projects](https://huggingface.co/docs/diffusers/community_projects) documentation.
|
|
70
|
+
* Officially listed in the [Hugging Face Diffusers Community Projects](https://huggingface.co/docs/diffusers/v0.42.1/en/community_projects) documentation.
|
|
70
71
|
|
|
71
72
|
<details>
|
|
72
73
|
<summary>Image of the listing location on Hugging Face</summary>
|
|
@@ -82,36 +83,53 @@ Enhance the functionality of diffusers.
|
|
|
82
83
|
|
|
83
84
|
## Regarding the Civitai API bug
|
|
84
85
|
|
|
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:
|
|
86
92
|
- Reduced search accuracy
|
|
87
93
|
- Some search results not being returned
|
|
88
94
|
|
|
89
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.
|
|
90
96
|
|
|
91
97
|
link: [civitai/civitai#1757](https://github.com/civitai/civitai/issues/1757)
|
|
92
|
-
|
|
98
|
+
|
|
99
|
+
</details>
|
|
100
|
+
|
|
101
|
+
## How to use<a name = "How_to_use"></a>
|
|
93
102
|
|
|
94
103
|
```python
|
|
95
104
|
pip install --quiet auto_diffusers
|
|
96
105
|
```
|
|
97
106
|
|
|
98
107
|
```python
|
|
108
|
+
import torch
|
|
99
109
|
from auto_diffusers import EasyPipelineForText2Image
|
|
100
110
|
|
|
101
|
-
#
|
|
102
|
-
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")
|
|
103
116
|
img = pipe("cat").images[0]
|
|
104
117
|
img.save("cat.png")
|
|
105
118
|
|
|
106
119
|
|
|
107
120
|
# Search for Civitai
|
|
108
|
-
pipe = EasyPipelineForText2Image.from_civitai(
|
|
121
|
+
pipe = EasyPipelineForText2Image.from_civitai(
|
|
122
|
+
"search_word",
|
|
123
|
+
dtype=torch.float16,
|
|
124
|
+
).to("cuda")
|
|
109
125
|
image = pipe("cat").images[0]
|
|
110
126
|
image.save("cat.png")
|
|
111
127
|
|
|
112
128
|
```
|
|
113
129
|
|
|
114
|
-
|
|
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>
|
|
115
133
|
|
|
116
134
|
```python
|
|
117
135
|
# Load Lora into the pipeline.
|
|
@@ -128,32 +146,32 @@ pipe.auto_load_textual_inversion("EasyNegative", token="EasyNegative")
|
|
|
128
146
|
|
|
129
147
|
#### `EasyPipeline.from_civitai` parameters
|
|
130
148
|
|
|
131
|
-
| Name | Type | Default | Description
|
|
149
|
+
| Name | Type | Default | Description |
|
|
132
150
|
|:---------------:|:----------------------:|:-------------:|:-----------------------------------------------------------------------------------:|
|
|
133
|
-
| search_word | string, Path |
|
|
134
|
-
| model_type | string | `Checkpoint` | The type of model to search for.
|
|
135
|
-
| base_model | string | None | Trained model tag (for example
|
|
136
|
-
|
|
|
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. |
|
|
137
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. |
|
|
138
|
-
| cache_dir | string, Path
|
|
139
|
-
| resume | bool
|
|
140
|
-
| 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. |
|
|
141
159
|
|
|
142
160
|
|
|
143
161
|
#### `search_civitai` parameters
|
|
144
162
|
|
|
145
|
-
| Name | Type | Default | Description
|
|
163
|
+
| Name | Type | Default | Description |
|
|
146
164
|
|:---------------:|:--------------:|:-------------:|:-----------------------------------------------------------------------------------:|
|
|
147
|
-
| search_word | string, Path |
|
|
148
|
-
| model_type | string | `Checkpoint` | The type of model to search for. <br>(for example `Checkpoint`, `TextualInversion`, `Controlnet`, `LORA`, `Hypernetwork`, `AestheticGradient`, `Poses`)
|
|
149
|
-
| base_model | string | None | Trained model tag (for example
|
|
150
|
-
| download | bool | False | Whether to download the model.
|
|
151
|
-
| force_download | bool | False | Whether to force the download if the model already exists.
|
|
152
|
-
| cache_dir | string, Path | None | Path to the folder where cached files are stored.
|
|
153
|
-
| resume | bool | False | Whether to resume an incomplete download.
|
|
154
|
-
| token | string | None | API token for Civitai authentication.
|
|
155
|
-
| include_params | bool | False | Whether to include parameters in the returned data.
|
|
156
|
-
| 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. |
|
|
157
175
|
|
|
158
176
|
### Search Huggingface<a name = "Search_Huggingface"></a>
|
|
159
177
|
|
|
@@ -162,29 +180,29 @@ pipe.auto_load_textual_inversion("EasyNegative", token="EasyNegative")
|
|
|
162
180
|
|
|
163
181
|
#### `EasyPipeline.from_huggingface` parameters
|
|
164
182
|
|
|
165
|
-
| Name | Type | Default | Description
|
|
166
|
-
|
|
167
|
-
| search_word | string, Path |
|
|
168
|
-
| checkpoint_format | string | `single_file` | The format of the model checkpoint.<br
|
|
169
|
-
|
|
|
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. |
|
|
170
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. |
|
|
171
|
-
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used.
|
|
172
|
-
| 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. |
|
|
173
191
|
|
|
174
192
|
|
|
175
193
|
#### `search_huggingface` parameters
|
|
176
194
|
|
|
177
|
-
| Name | Type | Default | Description
|
|
178
|
-
|
|
179
|
-
| search_word | string, Path |
|
|
180
|
-
| checkpoint_format | string | `single_file` | The format of the model checkpoint. <br
|
|
181
|
-
| pipeline_tag | string | None | Tag to filter models by pipeline.
|
|
182
|
-
| 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. |
|
|
183
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. |
|
|
184
|
-
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used.
|
|
185
|
-
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files.
|
|
186
|
-
| include_params | bool | False
|
|
187
|
-
| 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. |
|
|
188
206
|
|
|
189
207
|
|
|
190
208
|
## License<a name = "License"></a>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
>CONTENTS
|
|
18
18
|
+ [About The Project](#About_The_Project)
|
|
19
19
|
+ [How to use](#How_to_use)
|
|
20
|
-
+ [Search Hubs](#
|
|
20
|
+
+ [Search Hubs](#Search_Civitai_and_Huggingface)
|
|
21
21
|
- [Search Civitai](#Search_Civitai)
|
|
22
22
|
- [Search Huggingface](#Search_Huggingface)
|
|
23
23
|
+ [License](#License)
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
Enhance the functionality of diffusers.
|
|
30
30
|
* Search models from Hugging Face and Civitai.
|
|
31
|
-
* Officially listed in the [Hugging Face Diffusers Community Projects](https://huggingface.co/docs/diffusers/community_projects) documentation.
|
|
31
|
+
* Officially listed in the [Hugging Face Diffusers Community Projects](https://huggingface.co/docs/diffusers/v0.42.1/en/community_projects) documentation.
|
|
32
32
|
|
|
33
33
|
<details>
|
|
34
34
|
<summary>Image of the listing location on Hugging Face</summary>
|
|
@@ -44,36 +44,53 @@ Enhance the functionality of diffusers.
|
|
|
44
44
|
|
|
45
45
|
## Regarding the Civitai API bug
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
The previously reported Civitai API issue has largely been resolved.
|
|
48
|
+
|
|
49
|
+
<details>
|
|
50
|
+
<summary>Previous issue description</summary>
|
|
51
|
+
|
|
52
|
+
Due to recent specification changes in the Civitai API, we were aware of the following issues:
|
|
48
53
|
- Reduced search accuracy
|
|
49
54
|
- Some search results not being returned
|
|
50
55
|
|
|
51
56
|
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.
|
|
52
57
|
|
|
53
58
|
link: [civitai/civitai#1757](https://github.com/civitai/civitai/issues/1757)
|
|
54
|
-
|
|
59
|
+
|
|
60
|
+
</details>
|
|
61
|
+
|
|
62
|
+
## How to use<a name = "How_to_use"></a>
|
|
55
63
|
|
|
56
64
|
```python
|
|
57
65
|
pip install --quiet auto_diffusers
|
|
58
66
|
```
|
|
59
67
|
|
|
60
68
|
```python
|
|
69
|
+
import torch
|
|
61
70
|
from auto_diffusers import EasyPipelineForText2Image
|
|
62
71
|
|
|
63
|
-
#
|
|
64
|
-
pipe = EasyPipelineForText2Image.from_huggingface(
|
|
72
|
+
# Load an official Hugging Face model
|
|
73
|
+
pipe = EasyPipelineForText2Image.from_huggingface(
|
|
74
|
+
"stabilityai/stable-diffusion-xl-base-1.0",
|
|
75
|
+
dtype=torch.float16,
|
|
76
|
+
).to("cuda")
|
|
65
77
|
img = pipe("cat").images[0]
|
|
66
78
|
img.save("cat.png")
|
|
67
79
|
|
|
68
80
|
|
|
69
81
|
# Search for Civitai
|
|
70
|
-
pipe = EasyPipelineForText2Image.from_civitai(
|
|
82
|
+
pipe = EasyPipelineForText2Image.from_civitai(
|
|
83
|
+
"search_word",
|
|
84
|
+
dtype=torch.float16,
|
|
85
|
+
).to("cuda")
|
|
71
86
|
image = pipe("cat").images[0]
|
|
72
87
|
image.save("cat.png")
|
|
73
88
|
|
|
74
89
|
```
|
|
75
90
|
|
|
76
|
-
|
|
91
|
+
Use `dtype` for new code. `torch_dtype` remains supported for compatibility, but do not pass both arguments at the same time.
|
|
92
|
+
|
|
93
|
+
## Search Civitai and Huggingface<a name = "Search_Civitai_and_Huggingface"></a>
|
|
77
94
|
|
|
78
95
|
```python
|
|
79
96
|
# Load Lora into the pipeline.
|
|
@@ -90,32 +107,32 @@ pipe.auto_load_textual_inversion("EasyNegative", token="EasyNegative")
|
|
|
90
107
|
|
|
91
108
|
#### `EasyPipeline.from_civitai` parameters
|
|
92
109
|
|
|
93
|
-
| Name | Type | Default | Description
|
|
110
|
+
| Name | Type | Default | Description |
|
|
94
111
|
|:---------------:|:----------------------:|:-------------:|:-----------------------------------------------------------------------------------:|
|
|
95
|
-
| search_word | string, Path |
|
|
96
|
-
| model_type | string | `Checkpoint` | The type of model to search for.
|
|
97
|
-
| base_model | string | None | Trained model tag (for example
|
|
98
|
-
|
|
|
112
|
+
| search_word | string, Path | required | The search query string. Can be a keyword, Civitai URL, local directory or file path. |
|
|
113
|
+
| model_type | string | `Checkpoint` | The type of model to search for. <br>(for example `Checkpoint`, `TextualInversion`, `Controlnet`, `LORA`, `Hypernetwork`, `AestheticGradient`, `Poses`) |
|
|
114
|
+
| base_model | string | None | Trained model tag (for example `SD 1.5`, `SD 3.5`, `SDXL 1.0`) |
|
|
115
|
+
| dtype | string, torch.dtype | None | Override the default `torch.dtype` and load the model with another dtype. |
|
|
99
116
|
| 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. |
|
|
100
|
-
| cache_dir | string, Path
|
|
101
|
-
| resume | bool
|
|
102
|
-
| token | string
|
|
117
|
+
| cache_dir | string, Path | None | Path to the folder where cached files are stored. |
|
|
118
|
+
| resume | bool | False | Whether to resume an incomplete download. |
|
|
119
|
+
| token | string | None | API token for Civitai authentication. |
|
|
103
120
|
|
|
104
121
|
|
|
105
122
|
#### `search_civitai` parameters
|
|
106
123
|
|
|
107
|
-
| Name | Type | Default | Description
|
|
124
|
+
| Name | Type | Default | Description |
|
|
108
125
|
|:---------------:|:--------------:|:-------------:|:-----------------------------------------------------------------------------------:|
|
|
109
|
-
| search_word | string, Path |
|
|
110
|
-
| model_type | string | `Checkpoint` | The type of model to search for. <br>(for example `Checkpoint`, `TextualInversion`, `Controlnet`, `LORA`, `Hypernetwork`, `AestheticGradient`, `Poses`)
|
|
111
|
-
| base_model | string | None | Trained model tag (for example
|
|
112
|
-
| download | bool | False | Whether to download the model.
|
|
113
|
-
| force_download | bool | False | Whether to force the download if the model already exists.
|
|
114
|
-
| cache_dir | string, Path | None | Path to the folder where cached files are stored.
|
|
115
|
-
| resume | bool | False | Whether to resume an incomplete download.
|
|
116
|
-
| token | string | None | API token for Civitai authentication.
|
|
117
|
-
| include_params | bool | False | Whether to include parameters in the returned data.
|
|
118
|
-
| skip_error | bool | False | Whether to skip errors and return None.
|
|
126
|
+
| search_word | string, Path | required | The search query string. Can be a keyword, Civitai URL, local directory or file path. |
|
|
127
|
+
| model_type | string | `Checkpoint` | The type of model to search for. <br>(for example `Checkpoint`, `TextualInversion`, `Controlnet`, `LORA`, `Hypernetwork`, `AestheticGradient`, `Poses`) |
|
|
128
|
+
| base_model | string | None | Trained model tag (for example `SD 1.5`, `SD 3.5`, `SDXL 1.0`) |
|
|
129
|
+
| download | bool | False | Whether to download the model. |
|
|
130
|
+
| force_download | bool | False | Whether to force the download if the model already exists. |
|
|
131
|
+
| cache_dir | string, Path | None | Path to the folder where cached files are stored. |
|
|
132
|
+
| resume | bool | False | Whether to resume an incomplete download. |
|
|
133
|
+
| token | string | None | API token for Civitai authentication. |
|
|
134
|
+
| include_params | bool | False | Whether to include parameters in the returned data. |
|
|
135
|
+
| skip_error | bool | False | Whether to skip errors and return None. |
|
|
119
136
|
|
|
120
137
|
### Search Huggingface<a name = "Search_Huggingface"></a>
|
|
121
138
|
|
|
@@ -124,29 +141,29 @@ pipe.auto_load_textual_inversion("EasyNegative", token="EasyNegative")
|
|
|
124
141
|
|
|
125
142
|
#### `EasyPipeline.from_huggingface` parameters
|
|
126
143
|
|
|
127
|
-
| Name | Type | Default | Description
|
|
128
|
-
|
|
129
|
-
| search_word | string, Path |
|
|
130
|
-
| checkpoint_format | string | `single_file` | The format of the model checkpoint.<br
|
|
131
|
-
|
|
|
144
|
+
| Name | Type | Default | Description |
|
|
145
|
+
|:---------------------:|:-------------------:|:--------------:|:--------------------------------------------------------------------------------:|
|
|
146
|
+
| 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>`). |
|
|
147
|
+
| 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` |
|
|
148
|
+
| dtype | string, torch.dtype | None | Override the default `torch.dtype` and load the model with another dtype. |
|
|
132
149
|
| 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. |
|
|
133
|
-
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used.
|
|
134
|
-
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files.
|
|
150
|
+
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used. |
|
|
151
|
+
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files. |
|
|
135
152
|
|
|
136
153
|
|
|
137
154
|
#### `search_huggingface` parameters
|
|
138
155
|
|
|
139
|
-
| Name | Type | Default | Description
|
|
140
|
-
|
|
141
|
-
| search_word | string, Path |
|
|
142
|
-
| checkpoint_format | string | `single_file` | The format of the model checkpoint. <br
|
|
143
|
-
| pipeline_tag | string | None | Tag to filter models by pipeline.
|
|
144
|
-
| download | bool | False | Whether to download the model.
|
|
156
|
+
| Name | Type | Default | Description |
|
|
157
|
+
|:---------------------:|:-------------------:|:--------------:|:--------------------------------------------------------------------------------:|
|
|
158
|
+
| 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>`). |
|
|
159
|
+
| 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` |
|
|
160
|
+
| pipeline_tag | string | None | Tag to filter models by pipeline. |
|
|
161
|
+
| download | bool | False | Whether to download the model. |
|
|
145
162
|
| 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. |
|
|
146
|
-
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used.
|
|
147
|
-
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files.
|
|
148
|
-
| include_params | bool | False
|
|
149
|
-
| skip_error | bool | False
|
|
163
|
+
| cache_dir | string, Path | None | Path to a directory where a downloaded pretrained model configuration is cached if the standard cache is not used. |
|
|
164
|
+
| token | string, bool | None | The token to use as HTTP bearer authorization for remote files. |
|
|
165
|
+
| include_params | bool | False | Whether to include parameters in the returned data. |
|
|
166
|
+
| skip_error | bool | False | Whether to skip errors and return None. |
|
|
150
167
|
|
|
151
168
|
|
|
152
169
|
## License<a name = "License"></a>
|
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import sys
|
|
2
|
+
from pathlib import Path
|
|
2
3
|
|
|
3
4
|
from setuptools import find_packages, setup
|
|
4
5
|
|
|
5
6
|
_deps = [
|
|
6
7
|
"diffusers>=0.36.0",
|
|
8
|
+
"packaging>=20.0",
|
|
7
9
|
"transformers>=4.57.3",
|
|
8
10
|
]
|
|
9
11
|
|
|
10
12
|
version_range_max = max(sys.version_info[1], 10) + 1
|
|
11
13
|
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 5 - Production/Stable",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Intended Audience :: Education",
|
|
18
|
+
"Intended Audience :: Science/Research",
|
|
19
|
+
"License :: OSI Approved :: Apache Software License",
|
|
20
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
for minor_version in range(8, version_range_max):
|
|
25
|
+
classifiers.append(f"Programming Language :: Python :: 3.{minor_version}")
|
|
26
|
+
|
|
12
27
|
setup(
|
|
13
28
|
name="auto_diffusers",
|
|
14
|
-
version="2.0.
|
|
29
|
+
version="2.0.38",
|
|
15
30
|
description="diffusers with search engine",
|
|
16
|
-
long_description=
|
|
31
|
+
long_description=Path("README.md").read_text(encoding="utf-8"),
|
|
17
32
|
long_description_content_type="text/markdown",
|
|
18
33
|
keywords="huggingface civitai diffusers model search deep learning diffusion pytorch stable diffusion",
|
|
19
34
|
license="Apache 2.0 License",
|
|
@@ -26,14 +41,5 @@ setup(
|
|
|
26
41
|
python_requires=">=3.8.0",
|
|
27
42
|
include_package_data=True,
|
|
28
43
|
install_requires=list(_deps),
|
|
29
|
-
classifiers=
|
|
30
|
-
"Development Status :: 5 - Production/Stable",
|
|
31
|
-
"Intended Audience :: Developers",
|
|
32
|
-
"Intended Audience :: Education",
|
|
33
|
-
"Intended Audience :: Science/Research",
|
|
34
|
-
"License :: OSI Approved :: Apache Software License",
|
|
35
|
-
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
36
|
-
"Programming Language :: Python :: 3",
|
|
37
|
-
]
|
|
38
|
-
+ [f"Programming Language :: Python :: 3.{i}" for i in range(8, version_range_max)]
|
|
44
|
+
classifiers=classifiers,
|
|
39
45
|
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
__version__ = "2.0.38"
|
|
2
|
+
|
|
3
|
+
from .pipeline_easy import (
|
|
4
|
+
EasyPipelineForImage2Image,
|
|
5
|
+
EasyPipelineForInpainting,
|
|
6
|
+
EasyPipelineForText2Image,
|
|
7
|
+
load_pipeline_from_single_file,
|
|
8
|
+
search_civitai,
|
|
9
|
+
search_huggingface,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"EasyPipelineForImage2Image",
|
|
14
|
+
"EasyPipelineForInpainting",
|
|
15
|
+
"EasyPipelineForText2Image",
|
|
16
|
+
"load_pipeline_from_single_file",
|
|
17
|
+
"search_civitai",
|
|
18
|
+
"search_huggingface",
|
|
19
|
+
]
|