frknayk commited on
Commit
b2fe733
1 Parent(s): 3407164

End of training

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .config/.last_opt_in_prompt.yaml +1 -0
  2. .config/.last_survey_prompt.yaml +1 -0
  3. .config/.last_update_check.json +1 -0
  4. .config/active_config +1 -0
  5. .config/config_sentinel +0 -0
  6. .config/configurations/config_default +6 -0
  7. .config/default_configs.db +0 -0
  8. .config/gce +1 -0
  9. .config/logs/2023.08.10/19.17.49.796317.log +596 -0
  10. .config/logs/2023.08.10/19.18.23.871776.log +5 -0
  11. .config/logs/2023.08.10/19.18.51.518838.log +169 -0
  12. .config/logs/2023.08.10/19.19.06.479430.log +5 -0
  13. .config/logs/2023.08.10/19.19.35.335751.log +8 -0
  14. .config/logs/2023.08.10/19.19.36.186020.log +8 -0
  15. .gitattributes +6 -0
  16. README.md +22 -0
  17. diffusers/.github/ISSUE_TEMPLATE/bug-report.yml +80 -0
  18. diffusers/.github/ISSUE_TEMPLATE/config.yml +7 -0
  19. diffusers/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  20. diffusers/.github/ISSUE_TEMPLATE/feedback.md +12 -0
  21. diffusers/.github/ISSUE_TEMPLATE/new-model-addition.yml +31 -0
  22. diffusers/.github/PULL_REQUEST_TEMPLATE.md +60 -0
  23. diffusers/.github/actions/setup-miniconda/action.yml +146 -0
  24. diffusers/.github/workflows/build_docker_images.yml +50 -0
  25. diffusers/.github/workflows/build_documentation.yml +23 -0
  26. diffusers/.github/workflows/build_pr_documentation.yml +18 -0
  27. diffusers/.github/workflows/delete_doc_comment.yml +14 -0
  28. diffusers/.github/workflows/delete_doc_comment_trigger.yml +12 -0
  29. diffusers/.github/workflows/nightly_tests.yml +162 -0
  30. diffusers/.github/workflows/pr_dependency_test.yml +32 -0
  31. diffusers/.github/workflows/pr_quality.yml +50 -0
  32. diffusers/.github/workflows/pr_tests.yml +115 -0
  33. diffusers/.github/workflows/push_tests.yml +157 -0
  34. diffusers/.github/workflows/push_tests_fast.yml +110 -0
  35. diffusers/.github/workflows/push_tests_mps.yml +68 -0
  36. diffusers/.github/workflows/stale.yml +27 -0
  37. diffusers/.github/workflows/typos.yml +14 -0
  38. diffusers/.github/workflows/upload_pr_documentation.yml +16 -0
  39. diffusers/.gitignore +176 -0
  40. diffusers/CITATION.cff +40 -0
  41. diffusers/CODE_OF_CONDUCT.md +130 -0
  42. diffusers/CONTRIBUTING.md +505 -0
  43. diffusers/LICENSE +201 -0
  44. diffusers/MANIFEST.in +2 -0
  45. diffusers/Makefile +96 -0
  46. diffusers/PHILOSOPHY.md +110 -0
  47. diffusers/README.md +228 -0
  48. diffusers/_typos.toml +13 -0
  49. diffusers/diffusers/.github/ISSUE_TEMPLATE/bug-report.yml +80 -0
  50. diffusers/diffusers/.github/ISSUE_TEMPLATE/config.yml +7 -0
.config/.last_opt_in_prompt.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
.config/.last_survey_prompt.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ last_prompt_time: 1691695130.7169175
.config/.last_update_check.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"last_update_check_time": 1691695145.7454643, "last_update_check_revision": 20230804152239, "notifications": [], "last_nag_times": {}}
.config/active_config ADDED
@@ -0,0 +1 @@
 
 
1
+ default
.config/config_sentinel ADDED
File without changes
.config/configurations/config_default ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [component_manager]
2
+ disable_update_check = true
3
+
4
+ [compute]
5
+ gce_metadata_read_timeout_sec = 0
6
+
.config/default_configs.db ADDED
Binary file (12.3 kB). View file
 
.config/gce ADDED
@@ -0,0 +1 @@
 
 
1
+ False
.config/logs/2023.08.10/19.17.49.796317.log ADDED
@@ -0,0 +1,596 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2023-08-10 19:17:49,803 DEBUG root Loaded Command Group: ['gcloud', 'components']
2
+ 2023-08-10 19:17:49,808 DEBUG root Loaded Command Group: ['gcloud', 'components', 'update']
3
+ 2023-08-10 19:17:49,811 DEBUG root Running [gcloud.components.update] with arguments: [--allow-no-backup: "True", --compile-python: "True", --quiet: "True", COMPONENT-IDS:7: "['core', 'gcloud-deps', 'bq', 'gcloud', 'gcloud-crc32c', 'gsutil', 'anthoscli']"]
4
+ 2023-08-10 19:17:49,812 INFO ___FILE_ONLY___ Beginning update. This process may take several minutes.
5
+
6
+ 2023-08-10 19:18:01,864 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
7
+ 2023-08-10 19:18:02,150 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components-2.json HTTP/1.1" 200 209939
8
+ 2023-08-10 19:18:02,168 INFO ___FILE_ONLY___
9
+
10
+ 2023-08-10 19:18:02,169 INFO ___FILE_ONLY___
11
+ Your current Google Cloud CLI version is: 442.0.0
12
+
13
+ 2023-08-10 19:18:02,169 INFO ___FILE_ONLY___ Installing components from version: 442.0.0
14
+
15
+ 2023-08-10 19:18:02,169 INFO ___FILE_ONLY___
16
+
17
+ 2023-08-10 19:18:02,169 DEBUG root Chosen display Format:table[box,title="These components will be removed."](details.display_name:label=Name:align=left,version.version_string:label=Version:align=right,data.size.size(zero="",min=1048576):label=Size:align=right)
18
+ 2023-08-10 19:18:02,170 DEBUG root Chosen display Format:table[box,title="These components will be updated."](details.display_name:label=Name:align=left,version.version_string:label=Version:align=right,data.size.size(zero="",min=1048576):label=Size:align=right)
19
+ 2023-08-10 19:18:02,171 DEBUG root Chosen display Format:table[box,title="These components will be installed."](details.display_name:label=Name:align=left,version.version_string:label=Version:align=right,data.size.size(zero="",min=1048576):label=Size:align=right)
20
+ 2023-08-10 19:18:02,179 INFO ___FILE_ONLY___ ┌─────────────────────────────────────────────────────────────────────────────┐
21
+ 2023-08-10 19:18:02,179 INFO ___FILE_ONLY___
22
+
23
+ 2023-08-10 19:18:02,179 INFO ___FILE_ONLY___ │ These components will be installed. │
24
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___
25
+
26
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___ ├─────────────────────────────────────────────────────┬────────────┬──────────┤
27
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___
28
+
29
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___ │ Name │ Version │ Size │
30
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___
31
+
32
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___ ├─────────────────────────────────────────────────────┼────────────┼──────────┤
33
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___
34
+
35
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___ │
36
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___ BigQuery Command Line Tool
37
+ 2023-08-10 19:18:02,180 INFO ___FILE_ONLY___
38
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___ │
39
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___ 2.0.96
40
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___
41
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___ │
42
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___ 1.6 MiB
43
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___
44
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___ │
45
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___
46
+
47
+ 2023-08-10 19:18:02,181 INFO ___FILE_ONLY___ │
48
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___ BigQuery Command Line Tool (Platform Specific)
49
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___
50
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___ │
51
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___ 2.0.77
52
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___
53
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___ │
54
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___ < 1 MiB
55
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___
56
+ 2023-08-10 19:18:02,182 INFO ___FILE_ONLY___ │
57
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___
58
+
59
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___ │
60
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___ Bundled Python 3.9
61
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___
62
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___ │
63
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___ 3.9.16
64
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___
65
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___ │
66
+ 2023-08-10 19:18:02,183 INFO ___FILE_ONLY___ 63.6 MiB
67
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___
68
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___ │
69
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___
70
+
71
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___ │
72
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___ Cloud Storage Command Line Tool
73
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___
74
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___ │
75
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___ 5.25
76
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___
77
+ 2023-08-10 19:18:02,184 INFO ___FILE_ONLY___ │
78
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___ 11.3 MiB
79
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___
80
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___ │
81
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___
82
+
83
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___ │
84
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___ Cloud Storage Command Line Tool (Platform Specific)
85
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___
86
+ 2023-08-10 19:18:02,185 INFO ___FILE_ONLY___ │
87
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___ 5.13
88
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___
89
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___ │
90
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___ < 1 MiB
91
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___
92
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___ │
93
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___
94
+
95
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___ │
96
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___ Google Cloud CLI Core Libraries (Platform Specific)
97
+ 2023-08-10 19:18:02,186 INFO ___FILE_ONLY___
98
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___ │
99
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___ 2022.09.20
100
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___
101
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___ │
102
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___ < 1 MiB
103
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___
104
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___ │
105
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___
106
+
107
+ 2023-08-10 19:18:02,187 INFO ___FILE_ONLY___ │
108
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___ Google Cloud CRC32C Hash Tool
109
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___
110
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___ │
111
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___ 1.0.0
112
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___
113
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___ │
114
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___ 1.2 MiB
115
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___
116
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___ │
117
+ 2023-08-10 19:18:02,188 INFO ___FILE_ONLY___
118
+
119
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___ │
120
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___ anthoscli
121
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___
122
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___ │
123
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___ 0.2.38
124
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___
125
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___ │
126
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___ 68.4 MiB
127
+ 2023-08-10 19:18:02,189 INFO ___FILE_ONLY___
128
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___ │
129
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___
130
+
131
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___ │
132
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___ gcloud cli dependencies
133
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___
134
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___ │
135
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___ 2021.04.16
136
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___
137
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___ │
138
+ 2023-08-10 19:18:02,190 INFO ___FILE_ONLY___ < 1 MiB
139
+ 2023-08-10 19:18:02,191 INFO ___FILE_ONLY___
140
+ 2023-08-10 19:18:02,191 INFO ___FILE_ONLY___ │
141
+ 2023-08-10 19:18:02,191 INFO ___FILE_ONLY___
142
+
143
+ 2023-08-10 19:18:02,191 INFO ___FILE_ONLY___ └─────────────────────────────────────────────────────┴────────────┴──────────┘
144
+ 2023-08-10 19:18:02,191 INFO ___FILE_ONLY___
145
+
146
+ 2023-08-10 19:18:02,191 INFO ___FILE_ONLY___
147
+
148
+ 2023-08-10 19:18:02,196 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
149
+ 2023-08-10 19:18:02,508 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/RELEASE_NOTES HTTP/1.1" 200 1056631
150
+ 2023-08-10 19:18:02,726 INFO ___FILE_ONLY___ For the latest full release notes, please visit:
151
+ https://cloud.google.com/sdk/release_notes
152
+
153
+
154
+ 2023-08-10 19:18:02,729 INFO ___FILE_ONLY___ ╔═════════════════════════════════════════���══════════════════╗
155
+
156
+ 2023-08-10 19:18:02,729 INFO ___FILE_ONLY___ ╠═ Creating update staging area ═╣
157
+
158
+ 2023-08-10 19:18:02,729 INFO ___FILE_ONLY___ ╚
159
+ 2023-08-10 19:18:02,730 INFO ___FILE_ONLY___ ══════
160
+ 2023-08-10 19:18:02,730 INFO ___FILE_ONLY___ ══════
161
+ 2023-08-10 19:18:02,730 INFO ___FILE_ONLY___ ══════
162
+ 2023-08-10 19:18:02,982 INFO ___FILE_ONLY___ ═
163
+ 2023-08-10 19:18:03,089 INFO ___FILE_ONLY___ ═
164
+ 2023-08-10 19:18:03,164 INFO ___FILE_ONLY___ ═
165
+ 2023-08-10 19:18:03,247 INFO ___FILE_ONLY___ ═
166
+ 2023-08-10 19:18:03,354 INFO ___FILE_ONLY___ ═
167
+ 2023-08-10 19:18:03,454 INFO ___FILE_ONLY___ ═
168
+ 2023-08-10 19:18:03,537 INFO ___FILE_ONLY___ ═
169
+ 2023-08-10 19:18:03,623 INFO ___FILE_ONLY___ ═
170
+ 2023-08-10 19:18:03,716 INFO ___FILE_ONLY___ ═
171
+ 2023-08-10 19:18:03,829 INFO ___FILE_ONLY___ ═
172
+ 2023-08-10 19:18:03,910 INFO ___FILE_ONLY___ ═
173
+ 2023-08-10 19:18:03,994 INFO ___FILE_ONLY___ ═
174
+ 2023-08-10 19:18:04,141 INFO ___FILE_ONLY___ ═
175
+ 2023-08-10 19:18:04,238 INFO ___FILE_ONLY___ ═
176
+ 2023-08-10 19:18:04,336 INFO ___FILE_ONLY___ ═
177
+ 2023-08-10 19:18:04,419 INFO ___FILE_ONLY___ ═
178
+ 2023-08-10 19:18:04,836 INFO ___FILE_ONLY___ ═
179
+ 2023-08-10 19:18:05,127 INFO ___FILE_ONLY___ ═
180
+ 2023-08-10 19:18:05,240 INFO ___FILE_ONLY___ ═
181
+ 2023-08-10 19:18:05,311 INFO ___FILE_ONLY___ ═
182
+ 2023-08-10 19:18:05,374 INFO ___FILE_ONLY___ ═
183
+ 2023-08-10 19:18:05,428 INFO ___FILE_ONLY___ ═
184
+ 2023-08-10 19:18:05,478 INFO ___FILE_ONLY___ ═
185
+ 2023-08-10 19:18:05,527 INFO ___FILE_ONLY___ ═
186
+ 2023-08-10 19:18:05,588 INFO ___FILE_ONLY___ ═
187
+ 2023-08-10 19:18:05,719 INFO ___FILE_ONLY___ ═
188
+ 2023-08-10 19:18:05,848 INFO ___FILE_ONLY___ ═
189
+ 2023-08-10 19:18:05,993 INFO ___FILE_ONLY___ ═
190
+ 2023-08-10 19:18:06,098 INFO ___FILE_ONLY___ ═
191
+ 2023-08-10 19:18:06,205 INFO ___FILE_ONLY___ ═
192
+ 2023-08-10 19:18:06,302 INFO ___FILE_ONLY___ ═
193
+ 2023-08-10 19:18:06,406 INFO ___FILE_ONLY___ ═
194
+ 2023-08-10 19:18:06,512 INFO ___FILE_ONLY___ ═
195
+ 2023-08-10 19:18:06,615 INFO ___FILE_ONLY___ ═
196
+ 2023-08-10 19:18:06,741 INFO ___FILE_ONLY___ ═
197
+ 2023-08-10 19:18:06,871 INFO ___FILE_ONLY___ ═
198
+ 2023-08-10 19:18:06,994 INFO ___FILE_ONLY___ ═
199
+ 2023-08-10 19:18:07,095 INFO ___FILE_ONLY___ ═
200
+ 2023-08-10 19:18:07,185 INFO ___FILE_ONLY___ ═
201
+ 2023-08-10 19:18:07,304 INFO ___FILE_ONLY___ ═
202
+ 2023-08-10 19:18:07,393 INFO ___FILE_ONLY___ ═
203
+ 2023-08-10 19:18:07,494 INFO ___FILE_ONLY___ ═
204
+ 2023-08-10 19:18:07,494 INFO ___FILE_ONLY___ ╝
205
+
206
+ 2023-08-10 19:18:07,823 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
207
+
208
+ 2023-08-10 19:18:07,823 INFO ___FILE_ONLY___ ╠═ Installing: BigQuery Command Line Tool ═╣
209
+
210
+ 2023-08-10 19:18:07,823 INFO ___FILE_ONLY___ ╚
211
+ 2023-08-10 19:18:07,828 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
212
+ 2023-08-10 19:18:08,140 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-bq-20230804152239.tar.gz HTTP/1.1" 200 1651141
213
+ 2023-08-10 19:18:08,337 INFO ___FILE_ONLY___ ═
214
+ 2023-08-10 19:18:08,337 INFO ___FILE_ONLY___ ═
215
+ 2023-08-10 19:18:08,337 INFO ___FILE_ONLY___ ═
216
+ 2023-08-10 19:18:08,338 INFO ___FILE_ONLY___ ═
217
+ 2023-08-10 19:18:08,338 INFO ___FILE_ONLY___ ═
218
+ 2023-08-10 19:18:08,338 INFO ___FILE_ONLY___ ═
219
+ 2023-08-10 19:18:08,338 INFO ___FILE_ONLY___ ═
220
+ 2023-08-10 19:18:08,339 INFO ___FILE_ONLY___ ═
221
+ 2023-08-10 19:18:08,339 INFO ___FILE_ONLY___ ═
222
+ 2023-08-10 19:18:08,339 INFO ___FILE_ONLY___ ═
223
+ 2023-08-10 19:18:08,339 INFO ___FILE_ONLY___ ═
224
+ 2023-08-10 19:18:08,340 INFO ___FILE_ONLY___ ═
225
+ 2023-08-10 19:18:08,340 INFO ___FILE_ONLY___ ═
226
+ 2023-08-10 19:18:08,340 INFO ___FILE_ONLY___ ═
227
+ 2023-08-10 19:18:08,340 INFO ___FILE_ONLY___ ═
228
+ 2023-08-10 19:18:08,341 INFO ___FILE_ONLY___ ═
229
+ 2023-08-10 19:18:08,341 INFO ___FILE_ONLY___ ═
230
+ 2023-08-10 19:18:08,341 INFO ___FILE_ONLY___ ═
231
+ 2023-08-10 19:18:08,342 INFO ___FILE_ONLY___ ═
232
+ 2023-08-10 19:18:08,342 INFO ___FILE_ONLY___ ═
233
+ 2023-08-10 19:18:08,342 INFO ___FILE_ONLY___ ═
234
+ 2023-08-10 19:18:08,342 INFO ___FILE_ONLY___ ═
235
+ 2023-08-10 19:18:08,343 INFO ___FILE_ONLY___ ═
236
+ 2023-08-10 19:18:08,343 INFO ___FILE_ONLY___ ═
237
+ 2023-08-10 19:18:08,343 INFO ___FILE_ONLY___ ═
238
+ 2023-08-10 19:18:08,343 INFO ___FILE_ONLY___ ═
239
+ 2023-08-10 19:18:08,344 INFO ___FILE_ONLY___ ═
240
+ 2023-08-10 19:18:08,344 INFO ___FILE_ONLY___ ═
241
+ 2023-08-10 19:18:08,344 INFO ___FILE_ONLY___ ═
242
+ 2023-08-10 19:18:08,344 INFO ___FILE_ONLY___ ═
243
+ 2023-08-10 19:18:08,478 INFO ___FILE_ONLY___ ═
244
+ 2023-08-10 19:18:08,484 INFO ___FILE_ONLY___ ═
245
+ 2023-08-10 19:18:08,490 INFO ___FILE_ONLY___ ═
246
+ 2023-08-10 19:18:08,496 INFO ___FILE_ONLY___ ═
247
+ 2023-08-10 19:18:08,502 INFO ___FILE_ONLY___ ═
248
+ 2023-08-10 19:18:08,508 INFO ___FILE_ONLY___ ═
249
+ 2023-08-10 19:18:08,515 INFO ___FILE_ONLY___ ═
250
+ 2023-08-10 19:18:08,522 INFO ___FILE_ONLY___ ═
251
+ 2023-08-10 19:18:08,528 INFO ___FILE_ONLY___ ═
252
+ 2023-08-10 19:18:08,533 INFO ___FILE_ONLY___ ═
253
+ 2023-08-10 19:18:08,539 INFO ___FILE_ONLY___ ═
254
+ 2023-08-10 19:18:08,545 INFO ___FILE_ONLY___ ═
255
+ 2023-08-10 19:18:08,553 INFO ___FILE_ONLY___ ═
256
+ 2023-08-10 19:18:08,558 INFO ___FILE_ONLY___ ═
257
+ 2023-08-10 19:18:08,564 INFO ___FILE_ONLY___ ═
258
+ 2023-08-10 19:18:08,570 INFO ___FILE_ONLY___ ═
259
+ 2023-08-10 19:18:08,577 INFO ___FILE_ONLY___ ═
260
+ 2023-08-10 19:18:08,583 INFO ___FILE_ONLY___ ═
261
+ 2023-08-10 19:18:08,591 INFO ___FILE_ONLY___ ═
262
+ 2023-08-10 19:18:08,597 INFO ___FILE_ONLY___ ═
263
+ 2023-08-10 19:18:08,603 INFO ___FILE_ONLY___ ═
264
+ 2023-08-10 19:18:08,611 INFO ___FILE_ONLY___ ═
265
+ 2023-08-10 19:18:08,620 INFO ___FILE_ONLY___ ═
266
+ 2023-08-10 19:18:08,627 INFO ___FILE_ONLY___ ═
267
+ 2023-08-10 19:18:08,632 INFO ___FILE_ONLY___ ═
268
+ 2023-08-10 19:18:08,638 INFO ___FILE_ONLY___ ═
269
+ 2023-08-10 19:18:08,644 INFO ___FILE_ONLY___ ═
270
+ 2023-08-10 19:18:08,650 INFO ___FILE_ONLY___ ═
271
+ 2023-08-10 19:18:08,656 INFO ___FILE_ONLY___ ═
272
+ 2023-08-10 19:18:08,661 INFO ___FILE_ONLY___ ═
273
+ 2023-08-10 19:18:08,661 INFO ___FILE_ONLY___ ╝
274
+
275
+ 2023-08-10 19:18:08,681 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
276
+
277
+ 2023-08-10 19:18:08,681 INFO ___FILE_ONLY___ ╠═ Installing: BigQuery Command Line Tool (Platform Spec... ═╣
278
+
279
+ 2023-08-10 19:18:08,681 INFO ___FILE_ONLY___ ╚
280
+ 2023-08-10 19:18:08,686 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
281
+ 2023-08-10 19:18:08,970 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-bq-nix-20220920185015.tar.gz HTTP/1.1" 200 1837
282
+ 2023-08-10 19:18:08,971 INFO ___FILE_ONLY___ ══════════════════════════════
283
+ 2023-08-10 19:18:08,972 INFO ___FILE_ONLY___ ══════════════════════════════
284
+ 2023-08-10 19:18:08,972 INFO ___FILE_ONLY___ ╝
285
+
286
+ 2023-08-10 19:18:08,982 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
287
+
288
+ 2023-08-10 19:18:08,982 INFO ___FILE_ONLY___ ╠═ Installing: Bundled Python 3.9 ═╣
289
+
290
+ 2023-08-10 19:18:08,983 INFO ___FILE_ONLY___ ╚
291
+ 2023-08-10 19:18:08,987 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
292
+ 2023-08-10 19:18:09,304 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-bundled-python3-unix-linux-x86_64-20230707144938.tar.gz HTTP/1.1" 200 66719069
293
+ 2023-08-10 19:18:10,383 INFO ___FILE_ONLY___ ═
294
+ 2023-08-10 19:18:10,388 INFO ___FILE_ONLY___ ═
295
+ 2023-08-10 19:18:10,394 INFO ___FILE_ONLY___ ═
296
+ 2023-08-10 19:18:10,399 INFO ___FILE_ONLY___ ═
297
+ 2023-08-10 19:18:10,405 INFO ___FILE_ONLY___ ═
298
+ 2023-08-10 19:18:10,410 INFO ___FILE_ONLY___ ═
299
+ 2023-08-10 19:18:10,416 INFO ___FILE_ONLY___ ═
300
+ 2023-08-10 19:18:10,421 INFO ___FILE_ONLY___ ═
301
+ 2023-08-10 19:18:10,427 INFO ___FILE_ONLY___ ═
302
+ 2023-08-10 19:18:10,432 INFO ___FILE_ONLY___ ═
303
+ 2023-08-10 19:18:10,438 INFO ___FILE_ONLY___ ═
304
+ 2023-08-10 19:18:10,443 INFO ___FILE_ONLY___ ═
305
+ 2023-08-10 19:18:10,449 INFO ___FILE_ONLY___ ═
306
+ 2023-08-10 19:18:10,454 INFO ___FILE_ONLY___ ═
307
+ 2023-08-10 19:18:10,460 INFO ___FILE_ONLY___ ═
308
+ 2023-08-10 19:18:10,465 INFO ___FILE_ONLY___ ═
309
+ 2023-08-10 19:18:10,471 INFO ___FILE_ONLY___ ═
310
+ 2023-08-10 19:18:10,476 INFO ___FILE_ONLY___ ═
311
+ 2023-08-10 19:18:10,482 INFO ___FILE_ONLY___ ═
312
+ 2023-08-10 19:18:10,487 INFO ___FILE_ONLY___ ═
313
+ 2023-08-10 19:18:10,493 INFO ___FILE_ONLY___ ═
314
+ 2023-08-10 19:18:10,499 INFO ___FILE_ONLY___ ═
315
+ 2023-08-10 19:18:10,504 INFO ___FILE_ONLY___ ═
316
+ 2023-08-10 19:18:10,510 INFO ___FILE_ONLY___ ═
317
+ 2023-08-10 19:18:10,515 INFO ___FILE_ONLY___ ═
318
+ 2023-08-10 19:18:10,521 INFO ___FILE_ONLY___ ═
319
+ 2023-08-10 19:18:10,526 INFO ___FILE_ONLY___ ═
320
+ 2023-08-10 19:18:10,532 INFO ___FILE_ONLY___ ═
321
+ 2023-08-10 19:18:10,537 INFO ___FILE_ONLY___ ═
322
+ 2023-08-10 19:18:10,543 INFO ___FILE_ONLY___ ═
323
+ 2023-08-10 19:18:12,569 INFO ___FILE_ONLY___ ═
324
+ 2023-08-10 19:18:12,590 INFO ___FILE_ONLY___ ═
325
+ 2023-08-10 19:18:12,613 INFO ___FILE_ONLY___ ═
326
+ 2023-08-10 19:18:12,636 INFO ___FILE_ONLY___ ═
327
+ 2023-08-10 19:18:12,657 INFO ___FILE_ONLY___ ═
328
+ 2023-08-10 19:18:12,684 INFO ___FILE_ONLY___ ═
329
+ 2023-08-10 19:18:12,711 INFO ___FILE_ONLY___ ═
330
+ 2023-08-10 19:18:12,741 INFO ___FILE_ONLY___ ═
331
+ 2023-08-10 19:18:12,768 INFO ___FILE_ONLY___ ═
332
+ 2023-08-10 19:18:12,789 INFO ___FILE_ONLY___ ═
333
+ 2023-08-10 19:18:12,817 INFO ___FILE_ONLY___ ═
334
+ 2023-08-10 19:18:12,847 INFO ___FILE_ONLY___ ═
335
+ 2023-08-10 19:18:12,870 INFO ___FILE_ONLY___ ═
336
+ 2023-08-10 19:18:13,017 INFO ___FILE_ONLY___ ═
337
+ 2023-08-10 19:18:13,040 INFO ___FILE_ONLY___ ═
338
+ 2023-08-10 19:18:13,161 INFO ___FILE_ONLY___ ═
339
+ 2023-08-10 19:18:13,194 INFO ___FILE_ONLY___ ═
340
+ 2023-08-10 19:18:13,224 INFO ___FILE_ONLY___ ═
341
+ 2023-08-10 19:18:13,254 INFO ___FILE_ONLY___ ═
342
+ 2023-08-10 19:18:13,322 INFO ___FILE_ONLY___ ═
343
+ 2023-08-10 19:18:13,346 INFO ___FILE_ONLY___ ═
344
+ 2023-08-10 19:18:13,369 INFO ___FILE_ONLY___ ═
345
+ 2023-08-10 19:18:13,394 INFO ___FILE_ONLY___ ═
346
+ 2023-08-10 19:18:13,422 INFO ___FILE_ONLY___ ═
347
+ 2023-08-10 19:18:13,451 INFO ___FILE_ONLY___ ═
348
+ 2023-08-10 19:18:13,479 INFO ___FILE_ONLY___ ═
349
+ 2023-08-10 19:18:14,238 INFO ___FILE_ONLY___ ═
350
+ 2023-08-10 19:18:14,600 INFO ___FILE_ONLY___ ═
351
+ 2023-08-10 19:18:14,620 INFO ___FILE_ONLY___ ═
352
+ 2023-08-10 19:18:14,640 INFO ___FILE_ONLY___ ═
353
+ 2023-08-10 19:18:14,640 INFO ___FILE_ONLY___ ╝
354
+
355
+ 2023-08-10 19:18:14,715 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
356
+
357
+ 2023-08-10 19:18:14,715 INFO ___FILE_ONLY___ ╠═ Installing: Bundled Python 3.9 ═╣
358
+
359
+ 2023-08-10 19:18:14,715 INFO ___FILE_ONLY___ ╚
360
+ 2023-08-10 19:18:14,720 INFO ___FILE_ONLY___ ════════════════════════════════════════════════════════════
361
+ 2023-08-10 19:18:14,721 INFO ___FILE_ONLY___ ╝
362
+
363
+ 2023-08-10 19:18:14,723 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
364
+
365
+ 2023-08-10 19:18:14,723 INFO ___FILE_ONLY___ ╠═ Installing: Cloud Storage Command Line Tool ═╣
366
+
367
+ 2023-08-10 19:18:14,723 INFO ___FILE_ONLY___ ╚
368
+ 2023-08-10 19:18:14,728 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
369
+ 2023-08-10 19:18:15,026 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-gsutil-20230707144938.tar.gz HTTP/1.1" 200 11823782
370
+ 2023-08-10 19:18:15,351 INFO ___FILE_ONLY___ ═
371
+ 2023-08-10 19:18:15,352 INFO ___FILE_ONLY___ ═
372
+ 2023-08-10 19:18:15,353 INFO ___FILE_ONLY___ ═
373
+ 2023-08-10 19:18:15,354 INFO ___FILE_ONLY___ ═
374
+ 2023-08-10 19:18:15,355 INFO ___FILE_ONLY___ ═
375
+ 2023-08-10 19:18:15,356 INFO ___FILE_ONLY___ ═
376
+ 2023-08-10 19:18:15,357 INFO ___FILE_ONLY___ ═
377
+ 2023-08-10 19:18:15,358 INFO ___FILE_ONLY___ ═
378
+ 2023-08-10 19:18:15,359 INFO ___FILE_ONLY___ ═
379
+ 2023-08-10 19:18:15,360 INFO ___FILE_ONLY___ ═
380
+ 2023-08-10 19:18:15,361 INFO ___FILE_ONLY___ ═
381
+ 2023-08-10 19:18:15,362 INFO ___FILE_ONLY___ ═
382
+ 2023-08-10 19:18:15,364 INFO ___FILE_ONLY___ ═
383
+ 2023-08-10 19:18:15,365 INFO ___FILE_ONLY___ ═
384
+ 2023-08-10 19:18:15,366 INFO ___FILE_ONLY___ ═
385
+ 2023-08-10 19:18:15,367 INFO ___FILE_ONLY___ ═
386
+ 2023-08-10 19:18:15,368 INFO ___FILE_ONLY___ ═
387
+ 2023-08-10 19:18:15,369 INFO ___FILE_ONLY___ ═
388
+ 2023-08-10 19:18:15,370 INFO ___FILE_ONLY___ ═
389
+ 2023-08-10 19:18:15,371 INFO ___FILE_ONLY___ ═
390
+ 2023-08-10 19:18:15,372 INFO ___FILE_ONLY___ ═
391
+ 2023-08-10 19:18:15,373 INFO ___FILE_ONLY___ ═
392
+ 2023-08-10 19:18:15,374 INFO ___FILE_ONLY___ ═
393
+ 2023-08-10 19:18:15,375 INFO ___FILE_ONLY___ ═
394
+ 2023-08-10 19:18:15,376 INFO ___FILE_ONLY___ ═
395
+ 2023-08-10 19:18:15,377 INFO ___FILE_ONLY___ ═
396
+ 2023-08-10 19:18:15,378 INFO ___FILE_ONLY___ ═
397
+ 2023-08-10 19:18:15,380 INFO ___FILE_ONLY___ ═
398
+ 2023-08-10 19:18:15,381 INFO ___FILE_ONLY___ ═
399
+ 2023-08-10 19:18:15,382 INFO ___FILE_ONLY___ ═
400
+ 2023-08-10 19:18:16,181 INFO ___FILE_ONLY___ ═
401
+ 2023-08-10 19:18:16,226 INFO ___FILE_ONLY___ ═
402
+ 2023-08-10 19:18:16,268 INFO ___FILE_ONLY___ ═
403
+ 2023-08-10 19:18:16,313 INFO ___FILE_ONLY___ ═
404
+ 2023-08-10 19:18:16,346 INFO ___FILE_ONLY___ ═
405
+ 2023-08-10 19:18:16,383 INFO ___FILE_ONLY___ ═
406
+ 2023-08-10 19:18:16,420 INFO ___FILE_ONLY___ ═
407
+ 2023-08-10 19:18:16,459 INFO ___FILE_ONLY___ ═
408
+ 2023-08-10 19:18:16,499 INFO ___FILE_ONLY___ ═
409
+ 2023-08-10 19:18:16,554 INFO ___FILE_ONLY___ ═
410
+ 2023-08-10 19:18:16,604 INFO ___FILE_ONLY___ ═
411
+ 2023-08-10 19:18:16,645 INFO ___FILE_ONLY___ ═
412
+ 2023-08-10 19:18:16,700 INFO ___FILE_ONLY___ ═
413
+ 2023-08-10 19:18:16,750 INFO ___FILE_ONLY___ ═
414
+ 2023-08-10 19:18:16,798 INFO ___FILE_ONLY___ ═
415
+ 2023-08-10 19:18:16,836 INFO ___FILE_ONLY___ ═
416
+ 2023-08-10 19:18:16,872 INFO ___FILE_ONLY___ ═
417
+ 2023-08-10 19:18:16,910 INFO ___FILE_ONLY___ ═
418
+ 2023-08-10 19:18:16,950 INFO ___FILE_ONLY___ ═
419
+ 2023-08-10 19:18:16,992 INFO ___FILE_ONLY___ ═
420
+ 2023-08-10 19:18:17,038 INFO ___FILE_ONLY___ ═
421
+ 2023-08-10 19:18:17,080 INFO ___FILE_ONLY___ ═
422
+ 2023-08-10 19:18:17,120 INFO ___FILE_ONLY___ ═
423
+ 2023-08-10 19:18:17,196 INFO ___FILE_ONLY___ ═
424
+ 2023-08-10 19:18:17,239 INFO ___FILE_ONLY___ ═
425
+ 2023-08-10 19:18:17,281 INFO ___FILE_ONLY___ ═
426
+ 2023-08-10 19:18:17,316 INFO ___FILE_ONLY___ ═
427
+ 2023-08-10 19:18:17,353 INFO ___FILE_ONLY___ ═
428
+ 2023-08-10 19:18:17,393 INFO ___FILE_ONLY___ ═
429
+ 2023-08-10 19:18:17,431 INFO ___FILE_ONLY___ ═
430
+ 2023-08-10 19:18:17,432 INFO ___FILE_ONLY___ ╝
431
+
432
+ 2023-08-10 19:18:17,510 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
433
+
434
+ 2023-08-10 19:18:17,511 INFO ___FILE_ONLY___ ╠═ Installing: Cloud Storage Command Line Tool (Platform... ═╣
435
+
436
+ 2023-08-10 19:18:17,511 INFO ___FILE_ONLY___ ╚
437
+ 2023-08-10 19:18:17,516 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
438
+ 2023-08-10 19:18:17,821 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-gsutil-nix-20220920185015.tar.gz HTTP/1.1" 200 1851
439
+ 2023-08-10 19:18:17,822 INFO ___FILE_ONLY___ ══════════════════════════════
440
+ 2023-08-10 19:18:17,823 INFO ___FILE_ONLY___ ══════════════════════════════
441
+ 2023-08-10 19:18:17,823 INFO ___FILE_ONLY___ ╝
442
+
443
+ 2023-08-10 19:18:17,833 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
444
+
445
+ 2023-08-10 19:18:17,833 INFO ___FILE_ONLY___ ╠═ Installing: Default set of gcloud commands ═╣
446
+
447
+ 2023-08-10 19:18:17,833 INFO ___FILE_ONLY___ ╚
448
+ 2023-08-10 19:18:17,838 INFO ___FILE_ONLY___ ════════════════════════════════════════════════════════════
449
+ 2023-08-10 19:18:17,839 INFO ___FILE_ONLY___ ╝
450
+
451
+ 2023-08-10 19:18:17,841 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
452
+
453
+ 2023-08-10 19:18:17,841 INFO ___FILE_ONLY___ ╠═ Installing: Google Cloud CLI Core Libraries (Platform... ═╣
454
+
455
+ 2023-08-10 19:18:17,841 INFO ___FILE_ONLY___ ╚
456
+ 2023-08-10 19:18:17,846 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
457
+ 2023-08-10 19:18:18,132 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-core-nix-20220920185015.tar.gz HTTP/1.1" 200 2221
458
+ 2023-08-10 19:18:18,133 INFO ___FILE_ONLY___ ══════════════════════════════
459
+ 2023-08-10 19:18:18,134 INFO ___FILE_ONLY___ ═══════════════
460
+ 2023-08-10 19:18:18,135 INFO ___FILE_ONLY___ ═══════════════
461
+ 2023-08-10 19:18:18,135 INFO ___FILE_ONLY___ ╝
462
+
463
+ 2023-08-10 19:18:18,178 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
464
+
465
+ 2023-08-10 19:18:18,179 INFO ___FILE_ONLY___ ╠═ Installing: Google Cloud CRC32C Hash Tool ═╣
466
+
467
+ 2023-08-10 19:18:18,179 INFO ___FILE_ONLY___ ╚
468
+ 2023-08-10 19:18:18,183 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
469
+ 2023-08-10 19:18:18,511 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-gcloud-crc32c-linux-x86_64-20230728162818.tar.gz HTTP/1.1" 200 1272375
470
+ 2023-08-10 19:18:18,678 INFO ___FILE_ONLY___ ═
471
+ 2023-08-10 19:18:18,679 INFO ___FILE_ONLY___ ═
472
+ 2023-08-10 19:18:18,679 INFO ___FILE_ONLY___ ═
473
+ 2023-08-10 19:18:18,679 INFO ___FILE_ONLY___ ═
474
+ 2023-08-10 19:18:18,679 INFO ___FILE_ONLY___ ═
475
+ 2023-08-10 19:18:18,680 INFO ___FILE_ONLY___ ═
476
+ 2023-08-10 19:18:18,680 INFO ___FILE_ONLY___ ═
477
+ 2023-08-10 19:18:18,680 INFO ___FILE_ONLY___ ═
478
+ 2023-08-10 19:18:18,680 INFO ___FILE_ONLY___ ═
479
+ 2023-08-10 19:18:18,681 INFO ___FILE_ONLY___ ═
480
+ 2023-08-10 19:18:18,681 INFO ___FILE_ONLY___ ═
481
+ 2023-08-10 19:18:18,681 INFO ___FILE_ONLY___ ═
482
+ 2023-08-10 19:18:18,681 INFO ___FILE_ONLY___ ═
483
+ 2023-08-10 19:18:18,682 INFO ___FILE_ONLY___ ═
484
+ 2023-08-10 19:18:18,682 INFO ___FILE_ONLY___ ═
485
+ 2023-08-10 19:18:18,682 INFO ___FILE_ONLY___ ═
486
+ 2023-08-10 19:18:18,682 INFO ___FILE_ONLY___ ═
487
+ 2023-08-10 19:18:18,682 INFO ___FILE_ONLY___ ═
488
+ 2023-08-10 19:18:18,683 INFO ___FILE_ONLY___ ═
489
+ 2023-08-10 19:18:18,683 INFO ___FILE_ONLY___ ═
490
+ 2023-08-10 19:18:18,683 INFO ___FILE_ONLY___ ═
491
+ 2023-08-10 19:18:18,683 INFO ___FILE_ONLY___ ═
492
+ 2023-08-10 19:18:18,683 INFO ___FILE_ONLY___ ═
493
+ 2023-08-10 19:18:18,684 INFO ___FILE_ONLY___ ═
494
+ 2023-08-10 19:18:18,684 INFO ___FILE_ONLY___ ═
495
+ 2023-08-10 19:18:18,684 INFO ___FILE_ONLY___ ═
496
+ 2023-08-10 19:18:18,684 INFO ___FILE_ONLY___ ═
497
+ 2023-08-10 19:18:18,685 INFO ___FILE_ONLY___ ═
498
+ 2023-08-10 19:18:18,685 INFO ___FILE_ONLY___ ═
499
+ 2023-08-10 19:18:18,685 INFO ___FILE_ONLY___ ═
500
+ 2023-08-10 19:18:18,724 INFO ___FILE_ONLY___ ═══════════════
501
+ 2023-08-10 19:18:18,724 INFO ___FILE_ONLY___ ═══════════════
502
+ 2023-08-10 19:18:18,724 INFO ___FILE_ONLY___ ╝
503
+
504
+ 2023-08-10 19:18:18,735 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
505
+
506
+ 2023-08-10 19:18:18,735 INFO ___FILE_ONLY___ ╠═ Installing: Google Cloud CRC32C Hash Tool ═╣
507
+
508
+ 2023-08-10 19:18:18,735 INFO ___FILE_ONLY___ ╚
509
+ 2023-08-10 19:18:18,740 INFO ___FILE_ONLY___ ════════════════════════════════════════════════════════════
510
+ 2023-08-10 19:18:18,741 INFO ___FILE_ONLY___ ╝
511
+
512
+ 2023-08-10 19:18:18,743 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
513
+
514
+ 2023-08-10 19:18:18,743 INFO ___FILE_ONLY___ ╠═ Installing: anthoscli ═╣
515
+
516
+ 2023-08-10 19:18:18,743 INFO ___FILE_ONLY___ ╚
517
+ 2023-08-10 19:18:18,748 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
518
+ 2023-08-10 19:18:19,045 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-anthoscli-linux-x86_64-20230728162818.tar.gz HTTP/1.1" 200 71750856
519
+ 2023-08-10 19:18:20,052 INFO ___FILE_ONLY___ ═
520
+ 2023-08-10 19:18:20,058 INFO ___FILE_ONLY___ ═
521
+ 2023-08-10 19:18:20,064 INFO ___FILE_ONLY___ ═
522
+ 2023-08-10 19:18:20,070 INFO ___FILE_ONLY___ ═
523
+ 2023-08-10 19:18:20,076 INFO ___FILE_ONLY___ ═
524
+ 2023-08-10 19:18:20,082 INFO ___FILE_ONLY___ ═
525
+ 2023-08-10 19:18:20,088 INFO ___FILE_ONLY___ ═
526
+ 2023-08-10 19:18:20,094 INFO ___FILE_ONLY___ ═
527
+ 2023-08-10 19:18:20,100 INFO ___FILE_ONLY___ ═
528
+ 2023-08-10 19:18:20,106 INFO ___FILE_ONLY___ ═
529
+ 2023-08-10 19:18:20,111 INFO ___FILE_ONLY___ ═
530
+ 2023-08-10 19:18:20,117 INFO ___FILE_ONLY___ ═
531
+ 2023-08-10 19:18:20,123 INFO ___FILE_ONLY___ ═
532
+ 2023-08-10 19:18:20,129 INFO ___FILE_ONLY___ ═
533
+ 2023-08-10 19:18:20,135 INFO ___FILE_ONLY___ ═
534
+ 2023-08-10 19:18:20,141 INFO ___FILE_ONLY___ ═
535
+ 2023-08-10 19:18:20,147 INFO ___FILE_ONLY___ ═
536
+ 2023-08-10 19:18:20,153 INFO ___FILE_ONLY___ ═
537
+ 2023-08-10 19:18:20,159 INFO ___FILE_ONLY___ ═
538
+ 2023-08-10 19:18:20,164 INFO ___FILE_ONLY___ ═
539
+ 2023-08-10 19:18:20,170 INFO ___FILE_ONLY___ ═
540
+ 2023-08-10 19:18:20,176 INFO ___FILE_ONLY___ ═
541
+ 2023-08-10 19:18:20,182 INFO ___FILE_ONLY___ ═
542
+ 2023-08-10 19:18:20,188 INFO ___FILE_ONLY___ ═
543
+ 2023-08-10 19:18:20,194 INFO ___FILE_ONLY___ ═
544
+ 2023-08-10 19:18:20,200 INFO ___FILE_ONLY___ ═
545
+ 2023-08-10 19:18:20,206 INFO ___FILE_ONLY___ ═
546
+ 2023-08-10 19:18:20,212 INFO ___FILE_ONLY___ ═
547
+ 2023-08-10 19:18:20,218 INFO ___FILE_ONLY___ ═
548
+ 2023-08-10 19:18:20,224 INFO ___FILE_ONLY___ ═
549
+ 2023-08-10 19:18:22,764 INFO ___FILE_ONLY___ ══════════
550
+ 2023-08-10 19:18:22,771 INFO ___FILE_ONLY___ ═════════
551
+ 2023-08-10 19:18:22,805 INFO ___FILE_ONLY___ ═══════════
552
+ 2023-08-10 19:18:22,806 INFO ___FILE_ONLY___ ╝
553
+
554
+ 2023-08-10 19:18:22,845 INFO ___FILE_ONLY___ ╔═════════════════════════════════��══════════════════════════╗
555
+
556
+ 2023-08-10 19:18:22,846 INFO ___FILE_ONLY___ ╠═ Installing: anthoscli ═╣
557
+
558
+ 2023-08-10 19:18:22,846 INFO ___FILE_ONLY___ ╚
559
+ 2023-08-10 19:18:22,851 INFO ___FILE_ONLY___ ════════════════════════════════════════════════════════════
560
+ 2023-08-10 19:18:22,851 INFO ___FILE_ONLY___ ╝
561
+
562
+ 2023-08-10 19:18:22,853 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
563
+
564
+ 2023-08-10 19:18:22,854 INFO ___FILE_ONLY___ ╠═ Installing: gcloud cli dependencies ═╣
565
+
566
+ 2023-08-10 19:18:22,854 INFO ___FILE_ONLY___ ╚
567
+ 2023-08-10 19:18:22,858 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
568
+ 2023-08-10 19:18:23,148 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-gcloud-deps-linux-x86_64-20210416153011.tar.gz HTTP/1.1" 200 104
569
+ 2023-08-10 19:18:23,149 INFO ___FILE_ONLY___ ══════════════════════════════
570
+ 2023-08-10 19:18:23,150 INFO ___FILE_ONLY___ ══════════════════════════════
571
+ 2023-08-10 19:18:23,150 INFO ___FILE_ONLY___ ╝
572
+
573
+ 2023-08-10 19:18:23,160 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
574
+
575
+ 2023-08-10 19:18:23,160 INFO ___FILE_ONLY___ ╠═ Creating backup and activating new installation ═╣
576
+
577
+ 2023-08-10 19:18:23,160 INFO ___FILE_ONLY___ ╚
578
+ 2023-08-10 19:18:23,160 DEBUG root Attempting to move directory [/tools/google-cloud-sdk] to [/tools/google-cloud-sdk.staging/.install/.backup]
579
+ 2023-08-10 19:18:23,160 INFO ___FILE_ONLY___ ══════════════════════════════
580
+ 2023-08-10 19:18:23,160 DEBUG root Attempting to move directory [/tools/google-cloud-sdk.staging] to [/tools/google-cloud-sdk]
581
+ 2023-08-10 19:18:23,161 INFO ___FILE_ONLY___ ══════════════════════════════
582
+ 2023-08-10 19:18:23,161 INFO ___FILE_ONLY___ ╝
583
+
584
+ 2023-08-10 19:18:23,166 DEBUG root Updating notification cache...
585
+ 2023-08-10 19:18:23,166 INFO ___FILE_ONLY___
586
+
587
+ 2023-08-10 19:18:23,169 INFO ___FILE_ONLY___ Performing post processing steps...
588
+ 2023-08-10 19:18:23,170 DEBUG root Executing command: ['python3', '-S', '/tools/google-cloud-sdk/lib/gcloud.py', 'components', 'post-process']
589
+ 2023-08-10 19:18:50,590 DEBUG ___FILE_ONLY___
590
+ 2023-08-10 19:18:50,590 DEBUG ___FILE_ONLY___
591
+ 2023-08-10 19:18:50,710 INFO ___FILE_ONLY___
592
+ Update done!
593
+
594
+
595
+ 2023-08-10 19:18:50,715 DEBUG root Chosen display Format:none
596
+ 2023-08-10 19:18:50,716 INFO root Display format: "none"
.config/logs/2023.08.10/19.18.23.871776.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 2023-08-10 19:18:23,872 DEBUG root Loaded Command Group: ['gcloud', 'components']
2
+ 2023-08-10 19:18:23,875 DEBUG root Loaded Command Group: ['gcloud', 'components', 'post_process']
3
+ 2023-08-10 19:18:23,878 DEBUG root Running [gcloud.components.post-process] with arguments: []
4
+ 2023-08-10 19:18:50,469 DEBUG root Chosen display Format:none
5
+ 2023-08-10 19:18:50,470 INFO root Display format: "none"
.config/logs/2023.08.10/19.18.51.518838.log ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2023-08-10 19:18:51,520 DEBUG root Loaded Command Group: ['gcloud', 'components']
2
+ 2023-08-10 19:18:51,523 DEBUG root Loaded Command Group: ['gcloud', 'components', 'update']
3
+ 2023-08-10 19:18:51,526 DEBUG root Running [gcloud.components.update] with arguments: [--quiet: "True", COMPONENT-IDS:8: "['gcloud', 'core', 'bq', 'gsutil', 'compute', 'preview', 'alpha', 'beta']"]
4
+ 2023-08-10 19:18:51,527 INFO ___FILE_ONLY___ Beginning update. This process may take several minutes.
5
+
6
+ 2023-08-10 19:18:51,533 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
7
+ 2023-08-10 19:18:51,663 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components-2.json HTTP/1.1" 200 209939
8
+ 2023-08-10 19:18:51,760 WARNING root Component [compute] no longer exists.
9
+ 2023-08-10 19:18:51,760 WARNING root Component [preview] no longer exists.
10
+ 2023-08-10 19:18:51,761 INFO ___FILE_ONLY___
11
+
12
+ 2023-08-10 19:18:51,762 INFO ___FILE_ONLY___
13
+ Your current Google Cloud CLI version is: 442.0.0
14
+
15
+ 2023-08-10 19:18:51,762 INFO ___FILE_ONLY___ Installing components from version: 442.0.0
16
+
17
+ 2023-08-10 19:18:51,762 INFO ___FILE_ONLY___
18
+
19
+ 2023-08-10 19:18:51,762 DEBUG root Chosen display Format:table[box,title="These components will be removed."](details.display_name:label=Name:align=left,version.version_string:label=Version:align=right,data.size.size(zero="",min=1048576):label=Size:align=right)
20
+ 2023-08-10 19:18:51,763 DEBUG root Chosen display Format:table[box,title="These components will be updated."](details.display_name:label=Name:align=left,version.version_string:label=Version:align=right,data.size.size(zero="",min=1048576):label=Size:align=right)
21
+ 2023-08-10 19:18:51,764 DEBUG root Chosen display Format:table[box,title="These components will be installed."](details.display_name:label=Name:align=left,version.version_string:label=Version:align=right,data.size.size(zero="",min=1048576):label=Size:align=right)
22
+ 2023-08-10 19:18:51,766 INFO ___FILE_ONLY___ ┌──────────────────────────────────────────────┐
23
+ 2023-08-10 19:18:51,766 INFO ___FILE_ONLY___
24
+
25
+ 2023-08-10 19:18:51,766 INFO ___FILE_ONLY___ │ These components will be installed. │
26
+ 2023-08-10 19:18:51,766 INFO ___FILE_ONLY___
27
+
28
+ 2023-08-10 19:18:51,766 INFO ___FILE_ONLY___ ├───────────────────────┬────────────┬─────────┤
29
+ 2023-08-10 19:18:51,766 INFO ___FILE_ONLY___
30
+
31
+ 2023-08-10 19:18:51,766 INFO ___FILE_ONLY___ │ Name │ Version │ Size │
32
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___
33
+
34
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___ ├───────────────────────┼────────────┼─────────┤
35
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___
36
+
37
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___ │
38
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___ gcloud Alpha Commands
39
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___
40
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___ │
41
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___ 2023.08.04
42
+ 2023-08-10 19:18:51,767 INFO ___FILE_ONLY___
43
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___ │
44
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___ < 1 MiB
45
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___
46
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___ │
47
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___
48
+
49
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___ │
50
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___ gcloud Beta Commands
51
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___
52
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___ │
53
+ 2023-08-10 19:18:51,768 INFO ___FILE_ONLY___ 2023.08.04
54
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___
55
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___ │
56
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___ < 1 MiB
57
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___
58
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___ │
59
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___
60
+
61
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___ └───────────────────────┴────────────┴─────────┘
62
+ 2023-08-10 19:18:51,769 INFO ___FILE_ONLY___
63
+
64
+ 2023-08-10 19:18:51,770 INFO ___FILE_ONLY___
65
+
66
+ 2023-08-10 19:18:51,774 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
67
+ 2023-08-10 19:18:52,097 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/RELEASE_NOTES HTTP/1.1" 200 1056631
68
+ 2023-08-10 19:18:52,303 INFO ___FILE_ONLY___ For the latest full release notes, please visit:
69
+ https://cloud.google.com/sdk/release_notes
70
+
71
+
72
+ 2023-08-10 19:18:52,306 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
73
+
74
+ 2023-08-10 19:18:52,306 INFO ___FILE_ONLY___ ╠═ Creating update staging area ═╣
75
+
76
+ 2023-08-10 19:18:52,306 INFO ___FILE_ONLY___ ╚
77
+ 2023-08-10 19:18:52,306 INFO ___FILE_ONLY___ ══════
78
+ 2023-08-10 19:18:53,689 INFO ___FILE_ONLY___ ══════
79
+ 2023-08-10 19:18:53,689 INFO ___FILE_ONLY___ ══════
80
+ 2023-08-10 19:18:54,031 INFO ___FILE_ONLY___ ═
81
+ 2023-08-10 19:18:54,136 INFO ___FILE_ONLY___ ═
82
+ 2023-08-10 19:18:54,262 INFO ___FILE_ONLY___ ═
83
+ 2023-08-10 19:18:54,353 INFO ___FILE_ONLY___ ═
84
+ 2023-08-10 19:18:54,447 INFO ___FILE_ONLY___ ═
85
+ 2023-08-10 19:18:54,532 INFO ___FILE_ONLY___ ═
86
+ 2023-08-10 19:18:54,658 INFO ___FILE_ONLY___ ═
87
+ 2023-08-10 19:18:54,780 INFO ___FILE_ONLY___ ═
88
+ 2023-08-10 19:18:54,901 INFO ___FILE_ONLY___ ═
89
+ 2023-08-10 19:18:54,994 INFO ___FILE_ONLY___ ═
90
+ 2023-08-10 19:18:55,096 INFO ___FILE_ONLY___ ═
91
+ 2023-08-10 19:18:55,203 INFO ___FILE_ONLY___ ═
92
+ 2023-08-10 19:18:55,313 INFO ___FILE_ONLY___ ═
93
+ 2023-08-10 19:18:55,447 INFO ___FILE_ONLY___ ═
94
+ 2023-08-10 19:18:55,599 INFO ___FILE_ONLY___ ═
95
+ 2023-08-10 19:18:55,703 INFO ___FILE_ONLY___ ═
96
+ 2023-08-10 19:18:55,806 INFO ___FILE_ONLY___ ═
97
+ 2023-08-10 19:18:55,907 INFO ___FILE_ONLY___ ═
98
+ 2023-08-10 19:18:56,026 INFO ___FILE_ONLY___ ═
99
+ 2023-08-10 19:18:56,191 INFO ___FILE_ONLY___ ═
100
+ 2023-08-10 19:18:56,293 INFO ___FILE_ONLY___ ═
101
+ 2023-08-10 19:18:56,430 INFO ___FILE_ONLY___ ═
102
+ 2023-08-10 19:18:56,551 INFO ___FILE_ONLY___ ═
103
+ 2023-08-10 19:18:56,665 INFO ___FILE_ONLY___ ═
104
+ 2023-08-10 19:18:56,770 INFO ___FILE_ONLY___ ═
105
+ 2023-08-10 19:18:57,421 INFO ___FILE_ONLY___ ═
106
+ 2023-08-10 19:18:57,812 INFO ___FILE_ONLY___ ═
107
+ 2023-08-10 19:18:57,967 INFO ___FILE_ONLY___ ═
108
+ 2023-08-10 19:18:58,048 INFO ___FILE_ONLY___ ═
109
+ 2023-08-10 19:18:58,118 INFO ___FILE_ONLY___ ═
110
+ 2023-08-10 19:18:58,178 INFO ___FILE_ONLY___ ═
111
+ 2023-08-10 19:18:58,239 INFO ___FILE_ONLY___ ═
112
+ 2023-08-10 19:18:58,332 INFO ___FILE_ONLY___ ═
113
+ 2023-08-10 19:18:58,514 INFO ___FILE_ONLY___ ═
114
+ 2023-08-10 19:18:58,651 INFO ___FILE_ONLY___ ═
115
+ 2023-08-10 19:18:58,824 INFO ___FILE_ONLY___ ═
116
+ 2023-08-10 19:18:58,998 INFO ___FILE_ONLY___ ═
117
+ 2023-08-10 19:18:59,122 INFO ___FILE_ONLY___ ═
118
+ 2023-08-10 19:18:59,233 INFO ___FILE_ONLY___ ═
119
+ 2023-08-10 19:18:59,346 INFO ___FILE_ONLY___ ═
120
+ 2023-08-10 19:18:59,470 INFO ___FILE_ONLY___ ═
121
+ 2023-08-10 19:18:59,566 INFO ___FILE_ONLY___ ═
122
+ 2023-08-10 19:18:59,566 INFO ___FILE_ONLY___ ╝
123
+
124
+ 2023-08-10 19:19:05,133 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
125
+
126
+ 2023-08-10 19:19:05,133 INFO ___FILE_ONLY___ ╠═ Installing: gcloud Alpha Commands ═╣
127
+
128
+ 2023-08-10 19:19:05,134 INFO ___FILE_ONLY___ ╚
129
+ 2023-08-10 19:19:05,138 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
130
+ 2023-08-10 19:19:05,427 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-alpha-20230804152239.tar.gz HTTP/1.1" 200 800
131
+ 2023-08-10 19:19:05,428 INFO ___FILE_ONLY___ ══════════════════════════════
132
+ 2023-08-10 19:19:05,430 INFO ___FILE_ONLY___ ══════════════════════════════
133
+ 2023-08-10 19:19:05,430 INFO ___FILE_ONLY___ ╝
134
+
135
+ 2023-08-10 19:19:05,439 INFO ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗
136
+
137
+ 2023-08-10 19:19:05,439 INFO ___FILE_ONLY___ ╠═ Installing: gcloud Beta Commands ═╣
138
+
139
+ 2023-08-10 19:19:05,440 INFO ___FILE_ONLY___ ╚
140
+ 2023-08-10 19:19:05,444 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): dl.google.com:443
141
+ 2023-08-10 19:19:05,725 DEBUG urllib3.connectionpool https://dl.google.com:443 "GET /dl/cloudsdk/channels/rapid/components/google-cloud-sdk-beta-20230804152239.tar.gz HTTP/1.1" 200 797
142
+ 2023-08-10 19:19:05,726 INFO ___FILE_ONLY___ ══════════════════════════════
143
+ 2023-08-10 19:19:05,727 INFO ___FILE_ONLY___ ══════════════════════════════
144
+ 2023-08-10 19:19:05,727 INFO ___FILE_ONLY___ ╝
145
+
146
+ 2023-08-10 19:19:05,738 INFO ___FILE_ONLY___ ��════════════════════════════════════════════════════════════╗
147
+
148
+ 2023-08-10 19:19:05,738 INFO ___FILE_ONLY___ ╠═ Creating backup and activating new installation ═╣
149
+
150
+ 2023-08-10 19:19:05,738 INFO ___FILE_ONLY___ ╚
151
+ 2023-08-10 19:19:05,739 DEBUG root Attempting to move directory [/tools/google-cloud-sdk] to [/tools/google-cloud-sdk.staging/.install/.backup]
152
+ 2023-08-10 19:19:05,739 INFO ___FILE_ONLY___ ══════════════════════════════
153
+ 2023-08-10 19:19:05,739 DEBUG root Attempting to move directory [/tools/google-cloud-sdk.staging] to [/tools/google-cloud-sdk]
154
+ 2023-08-10 19:19:05,739 INFO ___FILE_ONLY___ ══════════════════════════════
155
+ 2023-08-10 19:19:05,739 INFO ___FILE_ONLY___ ╝
156
+
157
+ 2023-08-10 19:19:05,745 DEBUG root Updating notification cache...
158
+ 2023-08-10 19:19:05,745 INFO ___FILE_ONLY___
159
+
160
+ 2023-08-10 19:19:05,748 INFO ___FILE_ONLY___ Performing post processing steps...
161
+ 2023-08-10 19:19:05,748 DEBUG root Executing command: ['python3', '-S', '/tools/google-cloud-sdk/lib/gcloud.py', 'components', 'post-process']
162
+ 2023-08-10 19:19:34,491 DEBUG ___FILE_ONLY___
163
+ 2023-08-10 19:19:34,492 DEBUG ___FILE_ONLY___
164
+ 2023-08-10 19:19:34,539 INFO ___FILE_ONLY___
165
+ Update done!
166
+
167
+
168
+ 2023-08-10 19:19:34,544 DEBUG root Chosen display Format:none
169
+ 2023-08-10 19:19:34,544 INFO root Display format: "none"
.config/logs/2023.08.10/19.19.06.479430.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 2023-08-10 19:19:06,480 DEBUG root Loaded Command Group: ['gcloud', 'components']
2
+ 2023-08-10 19:19:06,482 DEBUG root Loaded Command Group: ['gcloud', 'components', 'post_process']
3
+ 2023-08-10 19:19:06,485 DEBUG root Running [gcloud.components.post-process] with arguments: []
4
+ 2023-08-10 19:19:34,371 DEBUG root Chosen display Format:none
5
+ 2023-08-10 19:19:34,372 INFO root Display format: "none"
.config/logs/2023.08.10/19.19.35.335751.log ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 2023-08-10 19:19:35,338 DEBUG root Loaded Command Group: ['gcloud', 'config']
2
+ 2023-08-10 19:19:35,372 DEBUG root Loaded Command Group: ['gcloud', 'config', 'set']
3
+ 2023-08-10 19:19:35,375 DEBUG root Running [gcloud.config.set] with arguments: [SECTION/PROPERTY: "component_manager/disable_update_check", VALUE: "true"]
4
+ 2023-08-10 19:19:35,376 INFO ___FILE_ONLY___ Updated property [component_manager/disable_update_check].
5
+
6
+ 2023-08-10 19:19:35,377 DEBUG root Chosen display Format:default
7
+ 2023-08-10 19:19:35,378 INFO root Display format: "default"
8
+ 2023-08-10 19:19:35,378 DEBUG root SDK update checks are disabled.
.config/logs/2023.08.10/19.19.36.186020.log ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 2023-08-10 19:19:36,188 DEBUG root Loaded Command Group: ['gcloud', 'config']
2
+ 2023-08-10 19:19:36,227 DEBUG root Loaded Command Group: ['gcloud', 'config', 'set']
3
+ 2023-08-10 19:19:36,230 DEBUG root Running [gcloud.config.set] with arguments: [SECTION/PROPERTY: "compute/gce_metadata_read_timeout_sec", VALUE: "0"]
4
+ 2023-08-10 19:19:36,231 INFO ___FILE_ONLY___ Updated property [compute/gce_metadata_read_timeout_sec].
5
+
6
+ 2023-08-10 19:19:36,233 DEBUG root Chosen display Format:default
7
+ 2023-08-10 19:19:36,233 INFO root Display format: "default"
8
+ 2023-08-10 19:19:36,234 DEBUG root SDK update checks are disabled.
.gitattributes CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ diffusers/dog/alvan-nee-Id1DBHv4fbg-unsplash.jpeg filter=lfs diff=lfs merge=lfs -text
37
+ diffusers/dog/alvan-nee-bQaAJCbNq3g-unsplash.jpeg filter=lfs diff=lfs merge=lfs -text
38
+ diffusers/dog/alvan-nee-brFsZ7qszSY-unsplash.jpeg filter=lfs diff=lfs merge=lfs -text
39
+ diffusers/dog/alvan-nee-eoqnr8ikwFE-unsplash.jpeg filter=lfs diff=lfs merge=lfs -text
40
+ sample_data/mnist_test.csv filter=lfs diff=lfs merge=lfs -text
41
+ sample_data/mnist_train_small.csv filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: creativeml-openrail-m
4
+ base_model: CompVis/stable-diffusion-v1-4
5
+ instance_prompt: a photo of sks dog
6
+ tags:
7
+ - stable-diffusion
8
+ - stable-diffusion-diffusers
9
+ - text-to-image
10
+ - diffusers
11
+ - dreambooth
12
+ inference: true
13
+ ---
14
+
15
+ # DreamBooth - frknayk/content
16
+
17
+ This is a dreambooth model derived from CompVis/stable-diffusion-v1-4. The weights were trained on a photo of sks dog using [DreamBooth](https://dreambooth.github.io/).
18
+ You can find some example images in the following.
19
+
20
+
21
+
22
+ DreamBooth for the text encoder was enabled: False.
diffusers/.github/ISSUE_TEMPLATE/bug-report.yml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "\U0001F41B Bug Report"
2
+ description: Report a bug on diffusers
3
+ labels: [ "bug" ]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Thanks a lot for taking the time to file this issue 🤗.
9
+ Issues do not only help to improve the library, but also publicly document common problems, questions, workflows for the whole community!
10
+ Thus, issues are of the same importance as pull requests when contributing to this library ❤️.
11
+ In order to make your issue as **useful for the community as possible**, let's try to stick to some simple guidelines:
12
+ - 1. Please try to be as precise and concise as possible.
13
+ *Give your issue a fitting title. Assume that someone which very limited knowledge of diffusers can understand your issue. Add links to the source code, documentation other issues, pull requests etc...*
14
+ - 2. If your issue is about something not working, **always** provide a reproducible code snippet. The reader should be able to reproduce your issue by **only copy-pasting your code snippet into a Python shell**.
15
+ *The community cannot solve your issue if it cannot reproduce it. If your bug is related to training, add your training script and make everything needed to train public. Otherwise, just add a simple Python code snippet.*
16
+ - 3. Add the **minimum amount of code / context that is needed to understand, reproduce your issue**.
17
+ *Make the life of maintainers easy. `diffusers` is getting many issues every day. Make sure your issue is about one bug and one bug only. Make sure you add only the context, code needed to understand your issues - nothing more. Generally, every issue is a way of documenting this library, try to make it a good documentation entry.*
18
+ - type: markdown
19
+ attributes:
20
+ value: |
21
+ For more in-detail information on how to write good issues you can have a look [here](https://huggingface.co/course/chapter8/5?fw=pt)
22
+ - type: textarea
23
+ id: bug-description
24
+ attributes:
25
+ label: Describe the bug
26
+ description: A clear and concise description of what the bug is. If you intend to submit a pull request for this issue, tell us in the description. Thanks!
27
+ placeholder: Bug description
28
+ validations:
29
+ required: true
30
+ - type: textarea
31
+ id: reproduction
32
+ attributes:
33
+ label: Reproduction
34
+ description: Please provide a minimal reproducible code which we can copy/paste and reproduce the issue.
35
+ placeholder: Reproduction
36
+ validations:
37
+ required: true
38
+ - type: textarea
39
+ id: logs
40
+ attributes:
41
+ label: Logs
42
+ description: "Please include the Python logs if you can."
43
+ render: shell
44
+ - type: textarea
45
+ id: system-info
46
+ attributes:
47
+ label: System Info
48
+ description: Please share your system info with us. You can run the command `diffusers-cli env` and copy-paste its output below.
49
+ placeholder: diffusers version, platform, python version, ...
50
+ validations:
51
+ required: true
52
+ - type: textarea
53
+ id: who-can-help
54
+ attributes:
55
+ label: Who can help?
56
+ description: |
57
+ Your issue will be replied to more quickly if you can figure out the right person to tag with @
58
+ If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
59
+
60
+ All issues are read by one of the core maintainers, so if you don't know who to tag, just leave this blank and
61
+ a core maintainer will ping the right person.
62
+
63
+ Please tag fewer than 3 people.
64
+
65
+ General library related questions: @patrickvonplaten and @sayakpaul
66
+
67
+ Questions on the training examples: @williamberman, @sayakpaul, @yiyixuxu
68
+
69
+ Questions on memory optimizations, LoRA, float16, etc.: @williamberman, @patrickvonplaten, and @sayakpaul
70
+
71
+ Questions on schedulers: @patrickvonplaten and @williamberman
72
+
73
+ Questions on models and pipelines: @patrickvonplaten, @sayakpaul, and @williamberman
74
+
75
+ Questions on JAX- and MPS-related things: @pcuenca
76
+
77
+ Questions on audio pipelines: @patrickvonplaten, @kashif, and @sanchit-gandhi
78
+
79
+ Documentation: @stevhliu and @yiyixuxu
80
+ placeholder: "@Username ..."
diffusers/.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ contact_links:
2
+ - name: Blank issue
3
+ url: https://github.com/huggingface/diffusers/issues/new
4
+ about: Other
5
+ - name: Forum
6
+ url: https://discuss.huggingface.co/
7
+ about: General usage questions and community discussions
diffusers/.github/ISSUE_TEMPLATE/feature_request.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "\U0001F680 Feature request"
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
diffusers/.github/ISSUE_TEMPLATE/feedback.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "💬 Feedback about API Design"
3
+ about: Give feedback about the current API design
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **What API design would you like to have changed or added to the library? Why?**
11
+
12
+ **What use case would this enable or better enable? Can you give us a code example?**
diffusers/.github/ISSUE_TEMPLATE/new-model-addition.yml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "\U0001F31F New model/pipeline/scheduler addition"
2
+ description: Submit a proposal/request to implement a new diffusion model / pipeline / scheduler
3
+ labels: [ "New model/pipeline/scheduler" ]
4
+
5
+ body:
6
+ - type: textarea
7
+ id: description-request
8
+ validations:
9
+ required: true
10
+ attributes:
11
+ label: Model/Pipeline/Scheduler description
12
+ description: |
13
+ Put any and all important information relative to the model/pipeline/scheduler
14
+
15
+ - type: checkboxes
16
+ id: information-tasks
17
+ attributes:
18
+ label: Open source status
19
+ description: |
20
+ Please note that if the model implementation isn't available or if the weights aren't open-source, we are less likely to implement it in `diffusers`.
21
+ options:
22
+ - label: "The model implementation is available"
23
+ - label: "The model weights are available (Only relevant if addition is not a scheduler)."
24
+
25
+ - type: textarea
26
+ id: additional-info
27
+ attributes:
28
+ label: Provide useful links for the implementation
29
+ description: |
30
+ Please provide information regarding the implementation, the weights, and the authors.
31
+ Please mention the authors by @gh-username if you're aware of their usernames.
diffusers/.github/PULL_REQUEST_TEMPLATE.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # What does this PR do?
2
+
3
+ <!--
4
+ Congratulations! You've made it this far! You're not quite done yet though.
5
+
6
+ Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution.
7
+
8
+ Then, please replace this with a description of the change and which issue is fixed (if applicable). Please also include relevant motivation and context. List any dependencies (if any) that are required for this change.
9
+
10
+ Once you're done, someone will review your PR shortly (see the section "Who can review?" below to tag some potential reviewers). They may suggest changes to make the code even better. If no one reviewed your PR after a week has passed, don't hesitate to post a new comment @-mentioning the same persons---sometimes notifications get lost.
11
+ -->
12
+
13
+ <!-- Remove if not applicable -->
14
+
15
+ Fixes # (issue)
16
+
17
+
18
+ ## Before submitting
19
+ - [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
20
+ - [ ] Did you read the [contributor guideline](https://github.com/huggingface/diffusers/blob/main/CONTRIBUTING.md)?
21
+ - [ ] Did you read our [philosophy doc](https://github.com/huggingface/diffusers/blob/main/PHILOSOPHY.md) (important for complex PRs)?
22
+ - [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link to it if that's the case.
23
+ - [ ] Did you make sure to update the documentation with your changes? Here are the
24
+ [documentation guidelines](https://github.com/huggingface/diffusers/tree/main/docs), and
25
+ [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
26
+ - [ ] Did you write any new necessary tests?
27
+
28
+
29
+ ## Who can review?
30
+
31
+ Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
32
+ members/contributors who may be interested in your PR.
33
+
34
+ <!-- Your PR will be replied to more quickly if you can figure out the right person to tag with @
35
+
36
+ If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
37
+ Please tag fewer than 3 people.
38
+
39
+ Core library:
40
+
41
+ - Schedulers: @williamberman and @patrickvonplaten
42
+ - Pipelines: @patrickvonplaten and @sayakpaul
43
+ - Training examples: @sayakpaul and @patrickvonplaten
44
+ - Docs: @stevenliu and @yiyixu
45
+ - JAX and MPS: @pcuenca
46
+ - Audio: @sanchit-gandhi
47
+ - General functionalities: @patrickvonplaten and @sayakpaul
48
+
49
+ Integrations:
50
+
51
+ - deepspeed: HF Trainer/Accelerate: @pacman100
52
+
53
+ HF projects:
54
+
55
+ - accelerate: [different repo](https://github.com/huggingface/accelerate)
56
+ - datasets: [different repo](https://github.com/huggingface/datasets)
57
+ - transformers: [different repo](https://github.com/huggingface/transformers)
58
+ - safetensors: [different repo](https://github.com/huggingface/safetensors)
59
+
60
+ -->
diffusers/.github/actions/setup-miniconda/action.yml ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Set up conda environment for testing
2
+
3
+ description: Sets up miniconda in your ${RUNNER_TEMP} environment and gives you the ${CONDA_RUN} environment variable so you don't have to worry about polluting non-empeheral runners anymore
4
+
5
+ inputs:
6
+ python-version:
7
+ description: If set to any value, dont use sudo to clean the workspace
8
+ required: false
9
+ type: string
10
+ default: "3.9"
11
+ miniconda-version:
12
+ description: Miniconda version to install
13
+ required: false
14
+ type: string
15
+ default: "4.12.0"
16
+ environment-file:
17
+ description: Environment file to install dependencies from
18
+ required: false
19
+ type: string
20
+ default: ""
21
+
22
+ runs:
23
+ using: composite
24
+ steps:
25
+ # Use the same trick from https://github.com/marketplace/actions/setup-miniconda
26
+ # to refresh the cache daily. This is kind of optional though
27
+ - name: Get date
28
+ id: get-date
29
+ shell: bash
30
+ run: echo "today=$(/bin/date -u '+%Y%m%d')d" >> $GITHUB_OUTPUT
31
+ - name: Setup miniconda cache
32
+ id: miniconda-cache
33
+ uses: actions/cache@v2
34
+ with:
35
+ path: ${{ runner.temp }}/miniconda
36
+ key: miniconda-${{ runner.os }}-${{ runner.arch }}-${{ inputs.python-version }}-${{ steps.get-date.outputs.today }}
37
+ - name: Install miniconda (${{ inputs.miniconda-version }})
38
+ if: steps.miniconda-cache.outputs.cache-hit != 'true'
39
+ env:
40
+ MINICONDA_VERSION: ${{ inputs.miniconda-version }}
41
+ shell: bash -l {0}
42
+ run: |
43
+ MINICONDA_INSTALL_PATH="${RUNNER_TEMP}/miniconda"
44
+ mkdir -p "${MINICONDA_INSTALL_PATH}"
45
+ case ${RUNNER_OS}-${RUNNER_ARCH} in
46
+ Linux-X64)
47
+ MINICONDA_ARCH="Linux-x86_64"
48
+ ;;
49
+ macOS-ARM64)
50
+ MINICONDA_ARCH="MacOSX-arm64"
51
+ ;;
52
+ macOS-X64)
53
+ MINICONDA_ARCH="MacOSX-x86_64"
54
+ ;;
55
+ *)
56
+ echo "::error::Platform ${RUNNER_OS}-${RUNNER_ARCH} currently unsupported using this action"
57
+ exit 1
58
+ ;;
59
+ esac
60
+ MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py39_${MINICONDA_VERSION}-${MINICONDA_ARCH}.sh"
61
+ curl -fsSL "${MINICONDA_URL}" -o "${MINICONDA_INSTALL_PATH}/miniconda.sh"
62
+ bash "${MINICONDA_INSTALL_PATH}/miniconda.sh" -b -u -p "${MINICONDA_INSTALL_PATH}"
63
+ rm -rf "${MINICONDA_INSTALL_PATH}/miniconda.sh"
64
+ - name: Update GitHub path to include miniconda install
65
+ shell: bash
66
+ run: |
67
+ MINICONDA_INSTALL_PATH="${RUNNER_TEMP}/miniconda"
68
+ echo "${MINICONDA_INSTALL_PATH}/bin" >> $GITHUB_PATH
69
+ - name: Setup miniconda env cache (with env file)
70
+ id: miniconda-env-cache-env-file
71
+ if: ${{ runner.os }} == 'macOS' && ${{ inputs.environment-file }} != ''
72
+ uses: actions/cache@v2
73
+ with:
74
+ path: ${{ runner.temp }}/conda-python-${{ inputs.python-version }}
75
+ key: miniconda-env-${{ runner.os }}-${{ runner.arch }}-${{ inputs.python-version }}-${{ steps.get-date.outputs.today }}-${{ hashFiles(inputs.environment-file) }}
76
+ - name: Setup miniconda env cache (without env file)
77
+ id: miniconda-env-cache
78
+ if: ${{ runner.os }} == 'macOS' && ${{ inputs.environment-file }} == ''
79
+ uses: actions/cache@v2
80
+ with:
81
+ path: ${{ runner.temp }}/conda-python-${{ inputs.python-version }}
82
+ key: miniconda-env-${{ runner.os }}-${{ runner.arch }}-${{ inputs.python-version }}-${{ steps.get-date.outputs.today }}
83
+ - name: Setup conda environment with python (v${{ inputs.python-version }})
84
+ if: steps.miniconda-env-cache-env-file.outputs.cache-hit != 'true' && steps.miniconda-env-cache.outputs.cache-hit != 'true'
85
+ shell: bash
86
+ env:
87
+ PYTHON_VERSION: ${{ inputs.python-version }}
88
+ ENV_FILE: ${{ inputs.environment-file }}
89
+ run: |
90
+ CONDA_BASE_ENV="${RUNNER_TEMP}/conda-python-${PYTHON_VERSION}"
91
+ ENV_FILE_FLAG=""
92
+ if [[ -f "${ENV_FILE}" ]]; then
93
+ ENV_FILE_FLAG="--file ${ENV_FILE}"
94
+ elif [[ -n "${ENV_FILE}" ]]; then
95
+ echo "::warning::Specified env file (${ENV_FILE}) not found, not going to include it"
96
+ fi
97
+ conda create \
98
+ --yes \
99
+ --prefix "${CONDA_BASE_ENV}" \
100
+ "python=${PYTHON_VERSION}" \
101
+ ${ENV_FILE_FLAG} \
102
+ cmake=3.22 \
103
+ conda-build=3.21 \
104
+ ninja=1.10 \
105
+ pkg-config=0.29 \
106
+ wheel=0.37
107
+ - name: Clone the base conda environment and update GitHub env
108
+ shell: bash
109
+ env:
110
+ PYTHON_VERSION: ${{ inputs.python-version }}
111
+ CONDA_BASE_ENV: ${{ runner.temp }}/conda-python-${{ inputs.python-version }}
112
+ run: |
113
+ CONDA_ENV="${RUNNER_TEMP}/conda_environment_${GITHUB_RUN_ID}"
114
+ conda create \
115
+ --yes \
116
+ --prefix "${CONDA_ENV}" \
117
+ --clone "${CONDA_BASE_ENV}"
118
+ # TODO: conda-build could not be cloned because it hardcodes the path, so it
119
+ # could not be cached
120
+ conda install --yes -p ${CONDA_ENV} conda-build=3.21
121
+ echo "CONDA_ENV=${CONDA_ENV}" >> "${GITHUB_ENV}"
122
+ echo "CONDA_RUN=conda run -p ${CONDA_ENV} --no-capture-output" >> "${GITHUB_ENV}"
123
+ echo "CONDA_BUILD=conda run -p ${CONDA_ENV} conda-build" >> "${GITHUB_ENV}"
124
+ echo "CONDA_INSTALL=conda install -p ${CONDA_ENV}" >> "${GITHUB_ENV}"
125
+ - name: Get disk space usage and throw an error for low disk space
126
+ shell: bash
127
+ run: |
128
+ echo "Print the available disk space for manual inspection"
129
+ df -h
130
+ # Set the minimum requirement space to 4GB
131
+ MINIMUM_AVAILABLE_SPACE_IN_GB=4
132
+ MINIMUM_AVAILABLE_SPACE_IN_KB=$(($MINIMUM_AVAILABLE_SPACE_IN_GB * 1024 * 1024))
133
+ # Use KB to avoid floating point warning like 3.1GB
134
+ df -k | tr -s ' ' | cut -d' ' -f 4,9 | while read -r LINE;
135
+ do
136
+ AVAIL=$(echo $LINE | cut -f1 -d' ')
137
+ MOUNT=$(echo $LINE | cut -f2 -d' ')
138
+ if [ "$MOUNT" = "/" ]; then
139
+ if [ "$AVAIL" -lt "$MINIMUM_AVAILABLE_SPACE_IN_KB" ]; then
140
+ echo "There is only ${AVAIL}KB free space left in $MOUNT, which is less than the minimum requirement of ${MINIMUM_AVAILABLE_SPACE_IN_KB}KB. Please help create an issue to PyTorch Release Engineering via https://github.com/pytorch/test-infra/issues and provide the link to the workflow run."
141
+ exit 1;
142
+ else
143
+ echo "There is ${AVAIL}KB free space left in $MOUNT, continue"
144
+ fi
145
+ fi
146
+ done
diffusers/.github/workflows/build_docker_images.yml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build Docker images (nightly)
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ - cron: "0 0 * * *" # every day at midnight
7
+
8
+ concurrency:
9
+ group: docker-image-builds
10
+ cancel-in-progress: false
11
+
12
+ env:
13
+ REGISTRY: diffusers
14
+
15
+ jobs:
16
+ build-docker-images:
17
+ runs-on: ubuntu-latest
18
+
19
+ permissions:
20
+ contents: read
21
+ packages: write
22
+
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ image-name:
27
+ - diffusers-pytorch-cpu
28
+ - diffusers-pytorch-cuda
29
+ - diffusers-flax-cpu
30
+ - diffusers-flax-tpu
31
+ - diffusers-onnxruntime-cpu
32
+ - diffusers-onnxruntime-cuda
33
+
34
+ steps:
35
+ - name: Checkout repository
36
+ uses: actions/checkout@v3
37
+
38
+ - name: Login to Docker Hub
39
+ uses: docker/login-action@v2
40
+ with:
41
+ username: ${{ env.REGISTRY }}
42
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
43
+
44
+ - name: Build and push
45
+ uses: docker/build-push-action@v3
46
+ with:
47
+ no-cache: true
48
+ context: ./docker/${{ matrix.image-name }}
49
+ push: true
50
+ tags: ${{ env.REGISTRY }}/${{ matrix.image-name }}:latest
diffusers/.github/workflows/build_documentation.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - doc-builder*
8
+ - v*-release
9
+ - v*-patch
10
+
11
+ jobs:
12
+ build:
13
+ uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
14
+ with:
15
+ commit_sha: ${{ github.sha }}
16
+ install_libgl1: true
17
+ package: diffusers
18
+ notebook_folder: diffusers_doc
19
+ languages: en ko zh
20
+
21
+ secrets:
22
+ token: ${{ secrets.HUGGINGFACE_PUSH }}
23
+ hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
diffusers/.github/workflows/build_pr_documentation.yml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build PR Documentation
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ concurrency:
7
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
8
+ cancel-in-progress: true
9
+
10
+ jobs:
11
+ build:
12
+ uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
13
+ with:
14
+ commit_sha: ${{ github.event.pull_request.head.sha }}
15
+ pr_number: ${{ github.event.number }}
16
+ install_libgl1: true
17
+ package: diffusers
18
+ languages: en ko zh
diffusers/.github/workflows/delete_doc_comment.yml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Delete doc comment
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: ["Delete doc comment trigger"]
6
+ types:
7
+ - completed
8
+
9
+
10
+ jobs:
11
+ delete:
12
+ uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
13
+ secrets:
14
+ comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
diffusers/.github/workflows/delete_doc_comment_trigger.yml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Delete doc comment trigger
2
+
3
+ on:
4
+ pull_request:
5
+ types: [ closed ]
6
+
7
+
8
+ jobs:
9
+ delete:
10
+ uses: huggingface/doc-builder/.github/workflows/delete_doc_comment_trigger.yml@main
11
+ with:
12
+ pr_number: ${{ github.event.number }}
diffusers/.github/workflows/nightly_tests.yml ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Nightly tests on main
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 0 * * *" # every day at midnight
6
+
7
+ env:
8
+ DIFFUSERS_IS_CI: yes
9
+ HF_HOME: /mnt/cache
10
+ OMP_NUM_THREADS: 8
11
+ MKL_NUM_THREADS: 8
12
+ PYTEST_TIMEOUT: 600
13
+ RUN_SLOW: yes
14
+ RUN_NIGHTLY: yes
15
+
16
+ jobs:
17
+ run_nightly_tests:
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ config:
22
+ - name: Nightly PyTorch CUDA tests on Ubuntu
23
+ framework: pytorch
24
+ runner: docker-gpu
25
+ image: diffusers/diffusers-pytorch-cuda
26
+ report: torch_cuda
27
+ - name: Nightly Flax TPU tests on Ubuntu
28
+ framework: flax
29
+ runner: docker-tpu
30
+ image: diffusers/diffusers-flax-tpu
31
+ report: flax_tpu
32
+ - name: Nightly ONNXRuntime CUDA tests on Ubuntu
33
+ framework: onnxruntime
34
+ runner: docker-gpu
35
+ image: diffusers/diffusers-onnxruntime-cuda
36
+ report: onnx_cuda
37
+
38
+ name: ${{ matrix.config.name }}
39
+
40
+ runs-on: ${{ matrix.config.runner }}
41
+
42
+ container:
43
+ image: ${{ matrix.config.image }}
44
+ options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ ${{ matrix.config.runner == 'docker-tpu' && '--privileged' || '--gpus 0'}}
45
+
46
+ defaults:
47
+ run:
48
+ shell: bash
49
+
50
+ steps:
51
+ - name: Checkout diffusers
52
+ uses: actions/checkout@v3
53
+ with:
54
+ fetch-depth: 2
55
+
56
+ - name: NVIDIA-SMI
57
+ if: ${{ matrix.config.runner == 'docker-gpu' }}
58
+ run: |
59
+ nvidia-smi
60
+
61
+ - name: Install dependencies
62
+ run: |
63
+ python -m pip install -e .[quality,test]
64
+ python -m pip install -U git+https://github.com/huggingface/transformers
65
+ python -m pip install git+https://github.com/huggingface/accelerate
66
+
67
+ - name: Environment
68
+ run: |
69
+ python utils/print_env.py
70
+
71
+ - name: Run nightly PyTorch CUDA tests
72
+ if: ${{ matrix.config.framework == 'pytorch' }}
73
+ env:
74
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
75
+ run: |
76
+ python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
77
+ -s -v -k "not Flax and not Onnx" \
78
+ --make-reports=tests_${{ matrix.config.report }} \
79
+ tests/
80
+
81
+ - name: Run nightly Flax TPU tests
82
+ if: ${{ matrix.config.framework == 'flax' }}
83
+ env:
84
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
85
+ run: |
86
+ python -m pytest -n 0 \
87
+ -s -v -k "Flax" \
88
+ --make-reports=tests_${{ matrix.config.report }} \
89
+ tests/
90
+
91
+ - name: Run nightly ONNXRuntime CUDA tests
92
+ if: ${{ matrix.config.framework == 'onnxruntime' }}
93
+ env:
94
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
95
+ run: |
96
+ python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
97
+ -s -v -k "Onnx" \
98
+ --make-reports=tests_${{ matrix.config.report }} \
99
+ tests/
100
+
101
+ - name: Failure short reports
102
+ if: ${{ failure() }}
103
+ run: cat reports/tests_${{ matrix.config.report }}_failures_short.txt
104
+
105
+ - name: Test suite reports artifacts
106
+ if: ${{ always() }}
107
+ uses: actions/upload-artifact@v2
108
+ with:
109
+ name: ${{ matrix.config.report }}_test_reports
110
+ path: reports
111
+
112
+ run_nightly_tests_apple_m1:
113
+ name: Nightly PyTorch MPS tests on MacOS
114
+ runs-on: [ self-hosted, apple-m1 ]
115
+
116
+ steps:
117
+ - name: Checkout diffusers
118
+ uses: actions/checkout@v3
119
+ with:
120
+ fetch-depth: 2
121
+
122
+ - name: Clean checkout
123
+ shell: arch -arch arm64 bash {0}
124
+ run: |
125
+ git clean -fxd
126
+
127
+ - name: Setup miniconda
128
+ uses: ./.github/actions/setup-miniconda
129
+ with:
130
+ python-version: 3.9
131
+
132
+ - name: Install dependencies
133
+ shell: arch -arch arm64 bash {0}
134
+ run: |
135
+ ${CONDA_RUN} python -m pip install --upgrade pip
136
+ ${CONDA_RUN} python -m pip install -e .[quality,test]
137
+ ${CONDA_RUN} python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
138
+ ${CONDA_RUN} python -m pip install git+https://github.com/huggingface/accelerate
139
+
140
+ - name: Environment
141
+ shell: arch -arch arm64 bash {0}
142
+ run: |
143
+ ${CONDA_RUN} python utils/print_env.py
144
+
145
+ - name: Run nightly PyTorch tests on M1 (MPS)
146
+ shell: arch -arch arm64 bash {0}
147
+ env:
148
+ HF_HOME: /System/Volumes/Data/mnt/cache
149
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
150
+ run: |
151
+ ${CONDA_RUN} python -m pytest -n 1 -s -v --make-reports=tests_torch_mps tests/
152
+
153
+ - name: Failure short reports
154
+ if: ${{ failure() }}
155
+ run: cat reports/tests_torch_mps_failures_short.txt
156
+
157
+ - name: Test suite reports artifacts
158
+ if: ${{ always() }}
159
+ uses: actions/upload-artifact@v2
160
+ with:
161
+ name: torch_mps_test_reports
162
+ path: reports
diffusers/.github/workflows/pr_dependency_test.yml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Run dependency tests
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ push:
8
+ branches:
9
+ - main
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ check_dependencies:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v4
22
+ with:
23
+ python-version: "3.7"
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install -e .
28
+ pip install pytest
29
+ - name: Check for soft dependencies
30
+ run: |
31
+ pytest tests/others/test_dependencies.py
32
+
diffusers/.github/workflows/pr_quality.yml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Run code quality checks
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ push:
8
+ branches:
9
+ - main
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ check_code_quality:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v4
22
+ with:
23
+ python-version: "3.7"
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install .[quality]
28
+ - name: Check quality
29
+ run: |
30
+ black --check examples tests src utils scripts
31
+ ruff examples tests src utils scripts
32
+ doc-builder style src/diffusers docs/source --max_len 119 --check_only --path_to_docs docs/source
33
+
34
+ check_repository_consistency:
35
+ runs-on: ubuntu-latest
36
+ steps:
37
+ - uses: actions/checkout@v3
38
+ - name: Set up Python
39
+ uses: actions/setup-python@v4
40
+ with:
41
+ python-version: "3.7"
42
+ - name: Install dependencies
43
+ run: |
44
+ python -m pip install --upgrade pip
45
+ pip install .[quality]
46
+ - name: Check quality
47
+ run: |
48
+ python utils/check_copies.py
49
+ python utils/check_dummies.py
50
+ make deps_table_check_updated
diffusers/.github/workflows/pr_tests.yml ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Fast tests for PRs
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ push:
8
+ branches:
9
+ - ci-*
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress: true
14
+
15
+ env:
16
+ DIFFUSERS_IS_CI: yes
17
+ OMP_NUM_THREADS: 4
18
+ MKL_NUM_THREADS: 4
19
+ PYTEST_TIMEOUT: 60
20
+
21
+ jobs:
22
+ run_fast_tests:
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ config:
27
+ - name: Fast PyTorch Pipeline CPU tests
28
+ framework: pytorch_pipelines
29
+ runner: docker-cpu
30
+ image: diffusers/diffusers-pytorch-cpu
31
+ report: torch_cpu_pipelines
32
+ - name: Fast PyTorch Models & Schedulers CPU tests
33
+ framework: pytorch_models
34
+ runner: docker-cpu
35
+ image: diffusers/diffusers-pytorch-cpu
36
+ report: torch_cpu_models_schedulers
37
+ - name: Fast Flax CPU tests
38
+ framework: flax
39
+ runner: docker-cpu
40
+ image: diffusers/diffusers-flax-cpu
41
+ report: flax_cpu
42
+ - name: PyTorch Example CPU tests
43
+ framework: pytorch_examples
44
+ runner: docker-cpu
45
+ image: diffusers/diffusers-pytorch-cpu
46
+ report: torch_example_cpu
47
+
48
+ name: ${{ matrix.config.name }}
49
+
50
+ runs-on: ${{ matrix.config.runner }}
51
+
52
+ container:
53
+ image: ${{ matrix.config.image }}
54
+ options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/
55
+
56
+ defaults:
57
+ run:
58
+ shell: bash
59
+
60
+ steps:
61
+ - name: Checkout diffusers
62
+ uses: actions/checkout@v3
63
+ with:
64
+ fetch-depth: 2
65
+
66
+ - name: Install dependencies
67
+ run: |
68
+ apt-get update && apt-get install libsndfile1-dev libgl1 -y
69
+ python -m pip install -e .[quality,test]
70
+
71
+ - name: Environment
72
+ run: |
73
+ python utils/print_env.py
74
+
75
+ - name: Run fast PyTorch Pipeline CPU tests
76
+ if: ${{ matrix.config.framework == 'pytorch_pipelines' }}
77
+ run: |
78
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
79
+ -s -v -k "not Flax and not Onnx" \
80
+ --make-reports=tests_${{ matrix.config.report }} \
81
+ tests/pipelines
82
+
83
+ - name: Run fast PyTorch Model Scheduler CPU tests
84
+ if: ${{ matrix.config.framework == 'pytorch_models' }}
85
+ run: |
86
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
87
+ -s -v -k "not Flax and not Onnx and not Dependency" \
88
+ --make-reports=tests_${{ matrix.config.report }} \
89
+ tests/models tests/schedulers tests/others
90
+
91
+ - name: Run fast Flax TPU tests
92
+ if: ${{ matrix.config.framework == 'flax' }}
93
+ run: |
94
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
95
+ -s -v -k "Flax" \
96
+ --make-reports=tests_${{ matrix.config.report }} \
97
+ tests
98
+
99
+ - name: Run example PyTorch CPU tests
100
+ if: ${{ matrix.config.framework == 'pytorch_examples' }}
101
+ run: |
102
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
103
+ --make-reports=tests_${{ matrix.config.report }} \
104
+ examples/test_examples.py
105
+
106
+ - name: Failure short reports
107
+ if: ${{ failure() }}
108
+ run: cat reports/tests_${{ matrix.config.report }}_failures_short.txt
109
+
110
+ - name: Test suite reports artifacts
111
+ if: ${{ always() }}
112
+ uses: actions/upload-artifact@v2
113
+ with:
114
+ name: pr_${{ matrix.config.report }}_test_reports
115
+ path: reports
diffusers/.github/workflows/push_tests.yml ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Slow tests on main
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ env:
9
+ DIFFUSERS_IS_CI: yes
10
+ HF_HOME: /mnt/cache
11
+ OMP_NUM_THREADS: 8
12
+ MKL_NUM_THREADS: 8
13
+ PYTEST_TIMEOUT: 600
14
+ RUN_SLOW: yes
15
+
16
+ jobs:
17
+ run_slow_tests:
18
+ strategy:
19
+ fail-fast: false
20
+ max-parallel: 1
21
+ matrix:
22
+ config:
23
+ - name: Slow PyTorch CUDA tests on Ubuntu
24
+ framework: pytorch
25
+ runner: docker-gpu
26
+ image: diffusers/diffusers-pytorch-cuda
27
+ report: torch_cuda
28
+ - name: Slow Flax TPU tests on Ubuntu
29
+ framework: flax
30
+ runner: docker-tpu
31
+ image: diffusers/diffusers-flax-tpu
32
+ report: flax_tpu
33
+ - name: Slow ONNXRuntime CUDA tests on Ubuntu
34
+ framework: onnxruntime
35
+ runner: docker-gpu
36
+ image: diffusers/diffusers-onnxruntime-cuda
37
+ report: onnx_cuda
38
+
39
+ name: ${{ matrix.config.name }}
40
+
41
+ runs-on: ${{ matrix.config.runner }}
42
+
43
+ container:
44
+ image: ${{ matrix.config.image }}
45
+ options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ ${{ matrix.config.runner == 'docker-tpu' && '--privileged' || '--gpus 0'}}
46
+
47
+ defaults:
48
+ run:
49
+ shell: bash
50
+
51
+ steps:
52
+ - name: Checkout diffusers
53
+ uses: actions/checkout@v3
54
+ with:
55
+ fetch-depth: 2
56
+
57
+ - name: NVIDIA-SMI
58
+ if : ${{ matrix.config.runner == 'docker-gpu' }}
59
+ run: |
60
+ nvidia-smi
61
+
62
+ - name: Install dependencies
63
+ run: |
64
+ apt-get update && apt-get install libsndfile1-dev libgl1 -y
65
+ python -m pip install -e .[quality,test]
66
+
67
+ - name: Environment
68
+ run: |
69
+ python utils/print_env.py
70
+
71
+ - name: Run slow PyTorch CUDA tests
72
+ if: ${{ matrix.config.framework == 'pytorch' }}
73
+ env:
74
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
75
+ # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
76
+ CUBLAS_WORKSPACE_CONFIG: :16:8
77
+
78
+ run: |
79
+ python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
80
+ -s -v -k "not Flax and not Onnx" \
81
+ --make-reports=tests_${{ matrix.config.report }} \
82
+ tests/
83
+
84
+ - name: Run slow Flax TPU tests
85
+ if: ${{ matrix.config.framework == 'flax' }}
86
+ env:
87
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
88
+ run: |
89
+ python -m pytest -n 0 \
90
+ -s -v -k "Flax" \
91
+ --make-reports=tests_${{ matrix.config.report }} \
92
+ tests/
93
+
94
+ - name: Run slow ONNXRuntime CUDA tests
95
+ if: ${{ matrix.config.framework == 'onnxruntime' }}
96
+ env:
97
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
98
+ run: |
99
+ python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
100
+ -s -v -k "Onnx" \
101
+ --make-reports=tests_${{ matrix.config.report }} \
102
+ tests/
103
+
104
+ - name: Failure short reports
105
+ if: ${{ failure() }}
106
+ run: cat reports/tests_${{ matrix.config.report }}_failures_short.txt
107
+
108
+ - name: Test suite reports artifacts
109
+ if: ${{ always() }}
110
+ uses: actions/upload-artifact@v2
111
+ with:
112
+ name: ${{ matrix.config.report }}_test_reports
113
+ path: reports
114
+
115
+ run_examples_tests:
116
+ name: Examples PyTorch CUDA tests on Ubuntu
117
+
118
+ runs-on: docker-gpu
119
+
120
+ container:
121
+ image: diffusers/diffusers-pytorch-cuda
122
+ options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/
123
+
124
+ steps:
125
+ - name: Checkout diffusers
126
+ uses: actions/checkout@v3
127
+ with:
128
+ fetch-depth: 2
129
+
130
+ - name: NVIDIA-SMI
131
+ run: |
132
+ nvidia-smi
133
+
134
+ - name: Install dependencies
135
+ run: |
136
+ python -m pip install -e .[quality,test,training]
137
+
138
+ - name: Environment
139
+ run: |
140
+ python utils/print_env.py
141
+
142
+ - name: Run example tests on GPU
143
+ env:
144
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
145
+ run: |
146
+ python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v --make-reports=examples_torch_cuda examples/
147
+
148
+ - name: Failure short reports
149
+ if: ${{ failure() }}
150
+ run: cat reports/examples_torch_cuda_failures_short.txt
151
+
152
+ - name: Test suite reports artifacts
153
+ if: ${{ always() }}
154
+ uses: actions/upload-artifact@v2
155
+ with:
156
+ name: examples_test_reports
157
+ path: reports
diffusers/.github/workflows/push_tests_fast.yml ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Fast tests on main
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ env:
9
+ DIFFUSERS_IS_CI: yes
10
+ HF_HOME: /mnt/cache
11
+ OMP_NUM_THREADS: 8
12
+ MKL_NUM_THREADS: 8
13
+ PYTEST_TIMEOUT: 600
14
+ RUN_SLOW: no
15
+
16
+ jobs:
17
+ run_fast_tests:
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ config:
22
+ - name: Fast PyTorch CPU tests on Ubuntu
23
+ framework: pytorch
24
+ runner: docker-cpu
25
+ image: diffusers/diffusers-pytorch-cpu
26
+ report: torch_cpu
27
+ - name: Fast Flax CPU tests on Ubuntu
28
+ framework: flax
29
+ runner: docker-cpu
30
+ image: diffusers/diffusers-flax-cpu
31
+ report: flax_cpu
32
+ - name: Fast ONNXRuntime CPU tests on Ubuntu
33
+ framework: onnxruntime
34
+ runner: docker-cpu
35
+ image: diffusers/diffusers-onnxruntime-cpu
36
+ report: onnx_cpu
37
+ - name: PyTorch Example CPU tests on Ubuntu
38
+ framework: pytorch_examples
39
+ runner: docker-cpu
40
+ image: diffusers/diffusers-pytorch-cpu
41
+ report: torch_example_cpu
42
+
43
+ name: ${{ matrix.config.name }}
44
+
45
+ runs-on: ${{ matrix.config.runner }}
46
+
47
+ container:
48
+ image: ${{ matrix.config.image }}
49
+ options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/
50
+
51
+ defaults:
52
+ run:
53
+ shell: bash
54
+
55
+ steps:
56
+ - name: Checkout diffusers
57
+ uses: actions/checkout@v3
58
+ with:
59
+ fetch-depth: 2
60
+
61
+ - name: Install dependencies
62
+ run: |
63
+ apt-get update && apt-get install libsndfile1-dev libgl1 -y
64
+ python -m pip install -e .[quality,test]
65
+
66
+ - name: Environment
67
+ run: |
68
+ python utils/print_env.py
69
+
70
+ - name: Run fast PyTorch CPU tests
71
+ if: ${{ matrix.config.framework == 'pytorch' }}
72
+ run: |
73
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
74
+ -s -v -k "not Flax and not Onnx" \
75
+ --make-reports=tests_${{ matrix.config.report }} \
76
+ tests/
77
+
78
+ - name: Run fast Flax TPU tests
79
+ if: ${{ matrix.config.framework == 'flax' }}
80
+ run: |
81
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
82
+ -s -v -k "Flax" \
83
+ --make-reports=tests_${{ matrix.config.report }} \
84
+ tests/
85
+
86
+ - name: Run fast ONNXRuntime CPU tests
87
+ if: ${{ matrix.config.framework == 'onnxruntime' }}
88
+ run: |
89
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
90
+ -s -v -k "Onnx" \
91
+ --make-reports=tests_${{ matrix.config.report }} \
92
+ tests/
93
+
94
+ - name: Run example PyTorch CPU tests
95
+ if: ${{ matrix.config.framework == 'pytorch_examples' }}
96
+ run: |
97
+ python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
98
+ --make-reports=tests_${{ matrix.config.report }} \
99
+ examples/test_examples.py
100
+
101
+ - name: Failure short reports
102
+ if: ${{ failure() }}
103
+ run: cat reports/tests_${{ matrix.config.report }}_failures_short.txt
104
+
105
+ - name: Test suite reports artifacts
106
+ if: ${{ always() }}
107
+ uses: actions/upload-artifact@v2
108
+ with:
109
+ name: pr_${{ matrix.config.report }}_test_reports
110
+ path: reports
diffusers/.github/workflows/push_tests_mps.yml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Fast mps tests on main
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ env:
9
+ DIFFUSERS_IS_CI: yes
10
+ HF_HOME: /mnt/cache
11
+ OMP_NUM_THREADS: 8
12
+ MKL_NUM_THREADS: 8
13
+ PYTEST_TIMEOUT: 600
14
+ RUN_SLOW: no
15
+
16
+ jobs:
17
+ run_fast_tests_apple_m1:
18
+ name: Fast PyTorch MPS tests on MacOS
19
+ runs-on: [ self-hosted, apple-m1 ]
20
+
21
+ steps:
22
+ - name: Checkout diffusers
23
+ uses: actions/checkout@v3
24
+ with:
25
+ fetch-depth: 2
26
+
27
+ - name: Clean checkout
28
+ shell: arch -arch arm64 bash {0}
29
+ run: |
30
+ git clean -fxd
31
+
32
+ - name: Setup miniconda
33
+ uses: ./.github/actions/setup-miniconda
34
+ with:
35
+ python-version: 3.9
36
+
37
+ - name: Install dependencies
38
+ shell: arch -arch arm64 bash {0}
39
+ run: |
40
+ ${CONDA_RUN} python -m pip install --upgrade pip
41
+ ${CONDA_RUN} python -m pip install -e .[quality,test]
42
+ ${CONDA_RUN} python -m pip install torch torchvision torchaudio
43
+ ${CONDA_RUN} python -m pip install accelerate --upgrade
44
+ ${CONDA_RUN} python -m pip install transformers --upgrade
45
+
46
+ - name: Environment
47
+ shell: arch -arch arm64 bash {0}
48
+ run: |
49
+ ${CONDA_RUN} python utils/print_env.py
50
+
51
+ - name: Run fast PyTorch tests on M1 (MPS)
52
+ shell: arch -arch arm64 bash {0}
53
+ env:
54
+ HF_HOME: /System/Volumes/Data/mnt/cache
55
+ HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
56
+ run: |
57
+ ${CONDA_RUN} python -m pytest -n 0 -s -v --make-reports=tests_torch_mps tests/
58
+
59
+ - name: Failure short reports
60
+ if: ${{ failure() }}
61
+ run: cat reports/tests_torch_mps_failures_short.txt
62
+
63
+ - name: Test suite reports artifacts
64
+ if: ${{ always() }}
65
+ uses: actions/upload-artifact@v2
66
+ with:
67
+ name: pr_torch_mps_test_reports
68
+ path: reports
diffusers/.github/workflows/stale.yml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Stale Bot
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 15 * * *"
6
+
7
+ jobs:
8
+ close_stale_issues:
9
+ name: Close Stale Issues
10
+ if: github.repository == 'huggingface/diffusers'
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+
17
+ - name: Setup Python
18
+ uses: actions/setup-python@v1
19
+ with:
20
+ python-version: 3.7
21
+
22
+ - name: Install requirements
23
+ run: |
24
+ pip install PyGithub
25
+ - name: Close stale issues
26
+ run: |
27
+ python utils/stale.py
diffusers/.github/workflows/typos.yml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Check typos
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+
13
+ - name: typos-action
14
+ uses: crate-ci/typos@v1.12.4
diffusers/.github/workflows/upload_pr_documentation.yml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Upload PR Documentation
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: ["Build PR Documentation"]
6
+ types:
7
+ - completed
8
+
9
+ jobs:
10
+ build:
11
+ uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
12
+ with:
13
+ package_name: diffusers
14
+ secrets:
15
+ hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
16
+ comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
diffusers/.gitignore ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Initially taken from Github's Python gitignore file
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # tests and logs
12
+ tests/fixtures/cached_*_text.txt
13
+ logs/
14
+ lightning_logs/
15
+ lang_code_data/
16
+
17
+ # Distribution / packaging
18
+ .Python
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+
36
+ # PyInstaller
37
+ # Usually these files are written by a python script from a template
38
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
39
+ *.manifest
40
+ *.spec
41
+
42
+ # Installer logs
43
+ pip-log.txt
44
+ pip-delete-this-directory.txt
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov/
48
+ .tox/
49
+ .nox/
50
+ .coverage
51
+ .coverage.*
52
+ .cache
53
+ nosetests.xml
54
+ coverage.xml
55
+ *.cover
56
+ .hypothesis/
57
+ .pytest_cache/
58
+
59
+ # Translations
60
+ *.mo
61
+ *.pot
62
+
63
+ # Django stuff:
64
+ *.log
65
+ local_settings.py
66
+ db.sqlite3
67
+
68
+ # Flask stuff:
69
+ instance/
70
+ .webassets-cache
71
+
72
+ # Scrapy stuff:
73
+ .scrapy
74
+
75
+ # Sphinx documentation
76
+ docs/_build/
77
+
78
+ # PyBuilder
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ .python-version
90
+
91
+ # celery beat schedule file
92
+ celerybeat-schedule
93
+
94
+ # SageMath parsed files
95
+ *.sage.py
96
+
97
+ # Environments
98
+ .env
99
+ .venv
100
+ env/
101
+ venv/
102
+ ENV/
103
+ env.bak/
104
+ venv.bak/
105
+
106
+ # Spyder project settings
107
+ .spyderproject
108
+ .spyproject
109
+
110
+ # Rope project settings
111
+ .ropeproject
112
+
113
+ # mkdocs documentation
114
+ /site
115
+
116
+ # mypy
117
+ .mypy_cache/
118
+ .dmypy.json
119
+ dmypy.json
120
+
121
+ # Pyre type checker
122
+ .pyre/
123
+
124
+ # vscode
125
+ .vs
126
+ .vscode
127
+
128
+ # Pycharm
129
+ .idea
130
+
131
+ # TF code
132
+ tensorflow_code
133
+
134
+ # Models
135
+ proc_data
136
+
137
+ # examples
138
+ runs
139
+ /runs_old
140
+ /wandb
141
+ /examples/runs
142
+ /examples/**/*.args
143
+ /examples/rag/sweep
144
+
145
+ # data
146
+ /data
147
+ serialization_dir
148
+
149
+ # emacs
150
+ *.*~
151
+ debug.env
152
+
153
+ # vim
154
+ .*.swp
155
+
156
+ #ctags
157
+ tags
158
+
159
+ # pre-commit
160
+ .pre-commit*
161
+
162
+ # .lock
163
+ *.lock
164
+
165
+ # DS_Store (MacOS)
166
+ .DS_Store
167
+ # RL pipelines may produce mp4 outputs
168
+ *.mp4
169
+
170
+ # dependencies
171
+ /transformers
172
+
173
+ # ruff
174
+ .ruff_cache
175
+
176
+ wandb
diffusers/CITATION.cff ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ title: 'Diffusers: State-of-the-art diffusion models'
3
+ message: >-
4
+ If you use this software, please cite it using the
5
+ metadata from this file.
6
+ type: software
7
+ authors:
8
+ - given-names: Patrick
9
+ family-names: von Platen
10
+ - given-names: Suraj
11
+ family-names: Patil
12
+ - given-names: Anton
13
+ family-names: Lozhkov
14
+ - given-names: Pedro
15
+ family-names: Cuenca
16
+ - given-names: Nathan
17
+ family-names: Lambert
18
+ - given-names: Kashif
19
+ family-names: Rasul
20
+ - given-names: Mishig
21
+ family-names: Davaadorj
22
+ - given-names: Thomas
23
+ family-names: Wolf
24
+ repository-code: 'https://github.com/huggingface/diffusers'
25
+ abstract: >-
26
+ Diffusers provides pretrained diffusion models across
27
+ multiple modalities, such as vision and audio, and serves
28
+ as a modular toolbox for inference and training of
29
+ diffusion models.
30
+ keywords:
31
+ - deep-learning
32
+ - pytorch
33
+ - image-generation
34
+ - diffusion
35
+ - text2image
36
+ - image2image
37
+ - score-based-generative-modeling
38
+ - stable-diffusion
39
+ license: Apache-2.0
40
+ version: 0.12.1
diffusers/CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, religion, or sexual identity
11
+ and orientation.
12
+
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
15
+
16
+ ## Our Standards
17
+
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the
27
+ overall diffusers community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or
32
+ advances of any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email
36
+ address, without their explicit permission
37
+ * Spamming issues or PRs with links to projects unrelated to this library
38
+ * Other conduct which could reasonably be considered inappropriate in a
39
+ professional setting
40
+
41
+ ## Enforcement Responsibilities
42
+
43
+ Community leaders are responsible for clarifying and enforcing our standards of
44
+ acceptable behavior and will take appropriate and fair corrective action in
45
+ response to any behavior that they deem inappropriate, threatening, offensive,
46
+ or harmful.
47
+
48
+ Community leaders have the right and responsibility to remove, edit, or reject
49
+ comments, commits, code, wiki edits, issues, and other contributions that are
50
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
51
+ decisions when appropriate.
52
+
53
+ ## Scope
54
+
55
+ This Code of Conduct applies within all community spaces, and also applies when
56
+ an individual is officially representing the community in public spaces.
57
+ Examples of representing our community include using an official e-mail address,
58
+ posting via an official social media account, or acting as an appointed
59
+ representative at an online or offline event.
60
+
61
+ ## Enforcement
62
+
63
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
64
+ reported to the community leaders responsible for enforcement at
65
+ feedback@huggingface.co.
66
+ All complaints will be reviewed and investigated promptly and fairly.
67
+
68
+ All community leaders are obligated to respect the privacy and security of the
69
+ reporter of any incident.
70
+
71
+ ## Enforcement Guidelines
72
+
73
+ Community leaders will follow these Community Impact Guidelines in determining
74
+ the consequences for any action they deem in violation of this Code of Conduct:
75
+
76
+ ### 1. Correction
77
+
78
+ **Community Impact**: Use of inappropriate language or other behavior deemed
79
+ unprofessional or unwelcome in the community.
80
+
81
+ **Consequence**: A private, written warning from community leaders, providing
82
+ clarity around the nature of the violation and an explanation of why the
83
+ behavior was inappropriate. A public apology may be requested.
84
+
85
+ ### 2. Warning
86
+
87
+ **Community Impact**: A violation through a single incident or series
88
+ of actions.
89
+
90
+ **Consequence**: A warning with consequences for continued behavior. No
91
+ interaction with the people involved, including unsolicited interaction with
92
+ those enforcing the Code of Conduct, for a specified period of time. This
93
+ includes avoiding interactions in community spaces as well as external channels
94
+ like social media. Violating these terms may lead to a temporary or
95
+ permanent ban.
96
+
97
+ ### 3. Temporary Ban
98
+
99
+ **Community Impact**: A serious violation of community standards, including
100
+ sustained inappropriate behavior.
101
+
102
+ **Consequence**: A temporary ban from any sort of interaction or public
103
+ communication with the community for a specified period of time. No public or
104
+ private interaction with the people involved, including unsolicited interaction
105
+ with those enforcing the Code of Conduct, is allowed during this period.
106
+ Violating these terms may lead to a permanent ban.
107
+
108
+ ### 4. Permanent Ban
109
+
110
+ **Community Impact**: Demonstrating a pattern of violation of community
111
+ standards, including sustained inappropriate behavior, harassment of an
112
+ individual, or aggression toward or disparagement of classes of individuals.
113
+
114
+ **Consequence**: A permanent ban from any sort of public interaction within
115
+ the community.
116
+
117
+ ## Attribution
118
+
119
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
120
+ version 2.0, available at
121
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
122
+
123
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
124
+ enforcement ladder](https://github.com/mozilla/diversity).
125
+
126
+ [homepage]: https://www.contributor-covenant.org
127
+
128
+ For answers to common questions about this code of conduct, see the FAQ at
129
+ https://www.contributor-covenant.org/faq. Translations are available at
130
+ https://www.contributor-covenant.org/translations.
diffusers/CONTRIBUTING.md ADDED
@@ -0,0 +1,505 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--Copyright 2023 The HuggingFace Team. All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4
+ the License. You may obtain a copy of the License at
5
+
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9
+ an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
+ specific language governing permissions and limitations under the License.
11
+ -->
12
+
13
+ # How to contribute to Diffusers 🧨
14
+
15
+ We ❤️ contributions from the open-source community! Everyone is welcome, and all types of participation –not just code– are valued and appreciated. Answering questions, helping others, reaching out, and improving the documentation are all immensely valuable to the community, so don't be afraid and get involved if you're up for it!
16
+
17
+ Everyone is encouraged to start by saying 👋 in our public Discord channel. We discuss the latest trends in diffusion models, ask questions, show off personal projects, help each other with contributions, or just hang out ☕. <a href="https://Discord.gg/G7tWnz98XR"><img alt="Join us on Discord" src="https://img.shields.io/Discord/823813159592001537?color=5865F2&logo=Discord&logoColor=white"></a>
18
+
19
+ Whichever way you choose to contribute, we strive to be part of an open, welcoming, and kind community. Please, read our [code of conduct](https://github.com/huggingface/diffusers/blob/main/CODE_OF_CONDUCT.md) and be mindful to respect it during your interactions. We also recommend you become familiar with the [ethical guidelines](https://huggingface.co/docs/diffusers/conceptual/ethical_guidelines) that guide our project and ask you to adhere to the same principles of transparency and responsibility.
20
+
21
+ We enormously value feedback from the community, so please do not be afraid to speak up if you believe you have valuable feedback that can help improve the library - every message, comment, issue, and pull request (PR) is read and considered.
22
+
23
+ ## Overview
24
+
25
+ You can contribute in many ways ranging from answering questions on issues to adding new diffusion models to
26
+ the core library.
27
+
28
+ In the following, we give an overview of different ways to contribute, ranked by difficulty in ascending order. All of them are valuable to the community.
29
+
30
+ * 1. Asking and answering questions on [the Diffusers discussion forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers) or on [Discord](https://discord.gg/G7tWnz98XR).
31
+ * 2. Opening new issues on [the GitHub Issues tab](https://github.com/huggingface/diffusers/issues/new/choose)
32
+ * 3. Answering issues on [the GitHub Issues tab](https://github.com/huggingface/diffusers/issues)
33
+ * 4. Fix a simple issue, marked by the "Good first issue" label, see [here](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22).
34
+ * 5. Contribute to the [documentation](https://github.com/huggingface/diffusers/tree/main/docs/source).
35
+ * 6. Contribute a [Community Pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3Acommunity-examples)
36
+ * 7. Contribute to the [examples](https://github.com/huggingface/diffusers/tree/main/examples).
37
+ * 8. Fix a more difficult issue, marked by the "Good second issue" label, see [here](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+second+issue%22).
38
+ * 9. Add a new pipeline, model, or scheduler, see ["New Pipeline/Model"](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22) and ["New scheduler"](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22) issues. For this contribution, please have a look at [Design Philosophy](https://github.com/huggingface/diffusers/blob/main/PHILOSOPHY.md).
39
+
40
+ As said before, **all contributions are valuable to the community**.
41
+ In the following, we will explain each contribution a bit more in detail.
42
+
43
+ For all contributions 4.-9. you will need to open a PR. It is explained in detail how to do so in [Opening a pull requst](#how-to-open-a-pr)
44
+
45
+ ### 1. Asking and answering questions on the Diffusers discussion forum or on the Diffusers Discord
46
+
47
+ Any question or comment related to the Diffusers library can be asked on the [discussion forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/) or on [Discord](https://discord.gg/G7tWnz98XR). Such questions and comments include (but are not limited to):
48
+ - Reports of training or inference experiments in an attempt to share knowledge
49
+ - Presentation of personal projects
50
+ - Questions to non-official training examples
51
+ - Project proposals
52
+ - General feedback
53
+ - Paper summaries
54
+ - Asking for help on personal projects that build on top of the Diffusers library
55
+ - General questions
56
+ - Ethical questions regarding diffusion models
57
+ - ...
58
+
59
+ Every question that is asked on the forum or on Discord actively encourages the community to publicly
60
+ share knowledge and might very well help a beginner in the future that has the same question you're
61
+ having. Please do pose any questions you might have.
62
+ In the same spirit, you are of immense help to the community by answering such questions because this way you are publicly documenting knowledge for everybody to learn from.
63
+
64
+ **Please** keep in mind that the more effort you put into asking or answering a question, the higher
65
+ the quality of the publicly documented knowledge. In the same way, well-posed and well-answered questions create a high-quality knowledge database accessible to everybody, while badly posed questions or answers reduce the overall quality of the public knowledge database.
66
+ In short, a high quality question or answer is *precise*, *concise*, *relevant*, *easy-to-understand*, *accesible*, and *well-formated/well-posed*. For more information, please have a look through the [How to write a good issue](#how-to-write-a-good-issue) section.
67
+
68
+ **NOTE about channels**:
69
+ [*The forum*](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/63) is much better indexed by search engines, such as Google. Posts are ranked by popularity rather than chronologically. Hence, it's easier to look up questions and answers that we posted some time ago.
70
+ In addition, questions and answers posted in the forum can easily be linked to.
71
+ In contrast, *Discord* has a chat-like format that invites fast back-and-forth communication.
72
+ While it will most likely take less time for you to get an answer to your question on Discord, your
73
+ question won't be visible anymore over time. Also, it's much harder to find information that was posted a while back on Discord. We therefore strongly recommend using the forum for high-quality questions and answers in an attempt to create long-lasting knowledge for the community. If discussions on Discord lead to very interesting answers and conclusions, we recommend posting the results on the forum to make the information more available for future readers.
74
+
75
+ ### 2. Opening new issues on the GitHub issues tab
76
+
77
+ The 🧨 Diffusers library is robust and reliable thanks to the users who notify us of
78
+ the problems they encounter. So thank you for reporting an issue.
79
+
80
+ Remember, GitHub issues are reserved for technical questions directly related to the Diffusers library, bug reports, feature requests, or feedback on the library design.
81
+
82
+ In a nutshell, this means that everything that is **not** related to the **code of the Diffusers library** (including the documentation) should **not** be asked on GitHub, but rather on either the [forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/63) or [Discord](https://discord.gg/G7tWnz98XR).
83
+
84
+ **Please consider the following guidelines when opening a new issue**:
85
+ - Make sure you have searched whether your issue has already been asked before (use the search bar on GitHub under Issues).
86
+ - Please never report a new issue on another (related) issue. If another issue is highly related, please
87
+ open a new issue nevertheless and link to the related issue.
88
+ - Make sure your issue is written in English. Please use one of the great, free online translation services, such as [DeepL](https://www.deepl.com/translator) to translate from your native language to English if you are not comfortable in English.
89
+ - Check whether your issue might be solved by updating to the newest Diffusers version. Before posting your issue, please make sure that `python -c "import diffusers; print(diffusers.__version__)"` is higher or matches the latest Diffusers version.
90
+ - Remember that the more effort you put into opening a new issue, the higher the quality of your answer will be and the better the overall quality of the Diffusers issues.
91
+
92
+ New issues usually include the following.
93
+
94
+ #### 2.1. Reproducible, minimal bug reports.
95
+
96
+ A bug report should always have a reproducible code snippet and be as minimal and concise as possible.
97
+ This means in more detail:
98
+ - Narrow the bug down as much as you can, **do not just dump your whole code file**
99
+ - Format your code
100
+ - Do not include any external libraries except for Diffusers depending on them.
101
+ - **Always** provide all necessary information about your environment; for this, you can run: `diffusers-cli env` in your shell and copy-paste the displayed information to the issue.
102
+ - Explain the issue. If the reader doesn't know what the issue is and why it is an issue, she cannot solve it.
103
+ - **Always** make sure the reader can reproduce your issue with as little effort as possible. If your code snippet cannot be run because of missing libraries or undefined variables, the reader cannot help you. Make sure your reproducible code snippet is as minimal as possible and can be copy-pasted into a simple Python shell.
104
+ - If in order to reproduce your issue a model and/or dataset is required, make sure the reader has access to that model or dataset. You can always upload your model or dataset to the [Hub](https://huggingface.co) to make it easily downloadable. Try to keep your model and dataset as small as possible, to make the reproduction of your issue as effortless as possible.
105
+
106
+ For more information, please have a look through the [How to write a good issue](#how-to-write-a-good-issue) section.
107
+
108
+ You can open a bug report [here](https://github.com/huggingface/diffusers/issues/new/choose).
109
+
110
+ #### 2.2. Feature requests.
111
+
112
+ A world-class feature request addresses the following points:
113
+
114
+ 1. Motivation first:
115
+ * Is it related to a problem/frustration with the library? If so, please explain
116
+ why. Providing a code snippet that demonstrates the problem is best.
117
+ * Is it related to something you would need for a project? We'd love to hear
118
+ about it!
119
+ * Is it something you worked on and think could benefit the community?
120
+ Awesome! Tell us what problem it solved for you.
121
+ 2. Write a *full paragraph* describing the feature;
122
+ 3. Provide a **code snippet** that demonstrates its future use;
123
+ 4. In case this is related to a paper, please attach a link;
124
+ 5. Attach any additional information (drawings, screenshots, etc.) you think may help.
125
+
126
+ You can open a feature request [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feature_request.md&title=).
127
+
128
+ #### 2.3 Feedback.
129
+
130
+ Feedback about the library design and why it is good or not good helps the core maintainers immensely to build a user-friendly library. To understand the philosophy behind the current design philosophy, please have a look [here](https://huggingface.co/docs/diffusers/conceptual/philosophy). If you feel like a certain design choice does not fit with the current design philosophy, please explain why and how it should be changed. If a certain design choice follows the design philosophy too much, hence restricting use cases, explain why and how it should be changed.
131
+ If a certain design choice is very useful for you, please also leave a note as this is great feedback for future design decisions.
132
+
133
+ You can open an issue about feedback [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feedback.md&title=).
134
+
135
+ #### 2.4 Technical questions.
136
+
137
+ Technical questions are mainly about why certain code of the library was written in a certain way, or what a certain part of the code does. Please make sure to link to the code in question and please provide detail on
138
+ why this part of the code is difficult to understand.
139
+
140
+ You can open an issue about a technical question [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=bug&template=bug-report.yml).
141
+
142
+ #### 2.5 Proposal to add a new model, scheduler, or pipeline.
143
+
144
+ If the diffusion model community released a new model, pipeline, or scheduler that you would like to see in the Diffusers library, please provide the following information:
145
+
146
+ * Short description of the diffusion pipeline, model, or scheduler and link to the paper or public release.
147
+ * Link to any of its open-source implementation.
148
+ * Link to the model weights if they are available.
149
+
150
+ If you are willing to contribute to the model yourself, let us know so we can best guide you. Also, don't forget
151
+ to tag the original author of the component (model, scheduler, pipeline, etc.) by GitHub handle if you can find it.
152
+
153
+ You can open a request for a model/pipeline/scheduler [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=New+model%2Fpipeline%2Fscheduler&template=new-model-addition.yml).
154
+
155
+ ### 3. Answering issues on the GitHub issues tab
156
+
157
+ Answering issues on GitHub might require some technical knowledge of Diffusers, but we encourage everybody to give it a try even if you are not 100% certain that your answer is correct.
158
+ Some tips to give a high-quality answer to an issue:
159
+ - Be as concise and minimal as possible
160
+ - Stay on topic. An answer to the issue should concern the issue and only the issue.
161
+ - Provide links to code, papers, or other sources that prove or encourage your point.
162
+ - Answer in code. If a simple code snippet is the answer to the issue or shows how the issue can be solved, please provide a fully reproducible code snippet.
163
+
164
+ Also, many issues tend to be simply off-topic, duplicates of other issues, or irrelevant. It is of great
165
+ help to the maintainers if you can answer such issues, encouraging the author of the issue to be
166
+ more precise, provide the link to a duplicated issue or redirect them to [the forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/63) or [Discord](https://discord.gg/G7tWnz98XR)
167
+
168
+ If you have verified that the issued bug report is correct and requires a correction in the source code,
169
+ please have a look at the next sections.
170
+
171
+ For all of the following contributions, you will need to open a PR. It is explained in detail how to do so in the [Opening a pull requst](#how-to-open-a-pr) section.
172
+
173
+ ### 4. Fixing a "Good first issue"
174
+
175
+ *Good first issues* are marked by the [Good first issue](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) label. Usually, the issue already
176
+ explains how a potential solution should look so that it is easier to fix.
177
+ If the issue hasn't been closed and you would like to try to fix this issue, you can just leave a message "I would like to try this issue.". There are usually three scenarios:
178
+ - a.) The issue description already proposes a fix. In this case and if the solution makes sense to you, you can open a PR or draft PR to fix it.
179
+ - b.) The issue description does not propose a fix. In this case, you can ask what a proposed fix could look like and someone from the Diffusers team should answer shortly. If you have a good idea of how to fix it, feel free to directly open a PR.
180
+ - c.) There is already an open PR to fix the issue, but the issue hasn't been closed yet. If the PR has gone stale, you can simply open a new PR and link to the stale PR. PRs often go stale if the original contributor who wanted to fix the issue suddenly cannot find the time anymore to proceed. This often happens in open-source and is very normal. In this case, the community will be very happy if you give it a new try and leverage the knowledge of the existing PR. If there is already a PR and it is active, you can help the author by giving suggestions, reviewing the PR or even asking whether you can contribute to the PR.
181
+
182
+
183
+ ### 5. Contribute to the documentation
184
+
185
+ A good library **always** has good documentation! The official documentation is often one of the first points of contact for new users of the library, and therefore contributing to the documentation is a **highly
186
+ valuable contribution**.
187
+
188
+ Contributing to the library can have many forms:
189
+
190
+ - Correcting spelling or grammatical errors.
191
+ - Correct incorrect formatting of the docstring. If you see that the official documentation is weirdly displayed or a link is broken, we are very happy if you take some time to correct it.
192
+ - Correct the shape or dimensions of a docstring input or output tensor.
193
+ - Clarify documentation that is hard to understand or incorrect.
194
+ - Update outdated code examples.
195
+ - Translating the documentation to another language.
196
+
197
+ Anything displayed on [the official Diffusers doc page](https://huggingface.co/docs/diffusers/index) is part of the official documentation and can be corrected, adjusted in the respective [documentation source](https://github.com/huggingface/diffusers/tree/main/docs/source).
198
+
199
+ Please have a look at [this page](https://github.com/huggingface/diffusers/tree/main/docs) on how to verify changes made to the documentation locally.
200
+
201
+
202
+ ### 6. Contribute a community pipeline
203
+
204
+ [Pipelines](https://huggingface.co/docs/diffusers/api/pipelines/overview) are usually the first point of contact between the Diffusers library and the user.
205
+ Pipelines are examples of how to use Diffusers [models](https://huggingface.co/docs/diffusers/api/models) and [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview).
206
+ We support two types of pipelines:
207
+
208
+ - Official Pipelines
209
+ - Community Pipelines
210
+
211
+ Both official and community pipelines follow the same design and consist of the same type of components.
212
+
213
+ Official pipelines are tested and maintained by the core maintainers of Diffusers. Their code
214
+ resides in [src/diffusers/pipelines](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines).
215
+ In contrast, community pipelines are contributed and maintained purely by the **community** and are **not** tested.
216
+ They reside in [examples/community](https://github.com/huggingface/diffusers/tree/main/examples/community) and while they can be accessed via the [PyPI diffusers package](https://pypi.org/project/diffusers/), their code is not part of the PyPI distribution.
217
+
218
+ The reason for the distinction is that the core maintainers of the Diffusers library cannot maintain and test all
219
+ possible ways diffusion models can be used for inference, but some of them may be of interest to the community.
220
+ Officially released diffusion pipelines,
221
+ such as Stable Diffusion are added to the core src/diffusers/pipelines package which ensures
222
+ high quality of maintenance, no backward-breaking code changes, and testing.
223
+ More bleeding edge pipelines should be added as community pipelines. If usage for a community pipeline is high, the pipeline can be moved to the official pipelines upon request from the community. This is one of the ways we strive to be a community-driven library.
224
+
225
+ To add a community pipeline, one should add a <name-of-the-community>.py file to [examples/community](https://github.com/huggingface/diffusers/tree/main/examples/community) and adapt the [examples/community/README.md](https://github.com/huggingface/diffusers/tree/main/examples/community/README.md) to include an example of the new pipeline.
226
+
227
+ An example can be seen [here](https://github.com/huggingface/diffusers/pull/2400).
228
+
229
+ Community pipeline PRs are only checked at a superficial level and ideally they should be maintained by their original authors.
230
+
231
+ Contributing a community pipeline is a great way to understand how Diffusers models and schedulers work. Having contributed a community pipeline is usually the first stepping stone to contributing an official pipeline to the
232
+ core package.
233
+
234
+ ### 7. Contribute to training examples
235
+
236
+ Diffusers examples are a collection of training scripts that reside in [examples](https://github.com/huggingface/diffusers/tree/main/examples).
237
+
238
+ We support two types of training examples:
239
+
240
+ - Official training examples
241
+ - Research training examples
242
+
243
+ Research training examples are located in [examples/research_projects](https://github.com/huggingface/diffusers/tree/main/examples/research_projects) whereas official training examples include all folders under [examples](https://github.com/huggingface/diffusers/tree/main/examples) except the `research_projects` and `community` folders.
244
+ The official training examples are maintained by the Diffusers' core maintainers whereas the research training examples are maintained by the community.
245
+ This is because of the same reasons put forward in [6. Contribute a community pipeline](#contribute-a-community-pipeline) for official pipelines vs. community pipelines: It is not feasible for the core maintainers to maintain all possible training methods for diffusion models.
246
+ If the Diffusers core maintainers and the community consider a certain training paradigm to be too experimental or not popular enough, the corresponding training code should be put in the `research_projects` folder and maintained by the author.
247
+
248
+ Both official training and research examples consist of a directory that contains one or more training scripts, a requirements.txt file, and a README.md file. In order for the user to make use of the
249
+ training examples, it is required to clone the repository:
250
+
251
+ ```
252
+ git clone https://github.com/huggingface/diffusers
253
+ ```
254
+
255
+ as well as to install all additional dependencies required for training:
256
+
257
+ ```
258
+ pip install -r /examples/<your-example-folder>/requirements.txt
259
+ ```
260
+
261
+ Therefore when adding an example, the `requirements.txt` file shall define all pip dependencies required for your training example so that once all those are installed, the user can run the example's training script. See, for example, the [DreamBooth `requirements.txt` file](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/requirements.txt).
262
+
263
+ Training examples of the Diffusers library should adhere to the following philosophy:
264
+ - All the code necessary to run the examples should be found in a single Python file
265
+ - One should be able to run the example from the command line with `python <your-example>.py --args`
266
+ - Examples should be kept simple and serve as **an example** on how to use Diffusers for training. The purpose of example scripts is **not** to create state-of-the-art diffusion models, but rather to reproduce known training schemes without adding too much custom logic. As a byproduct of this point, our examples also strive to serve as good educational materials.
267
+
268
+ To contribute an example, it is highly recommended to look at already existing examples such as [dreambooth](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/train_dreambooth.py) to get an idea of how they should look like.
269
+ We strongly advise contributors to make use of the [Accelerate library](https://github.com/huggingface/accelerate) as it's tightly integrated
270
+ with Diffusers.
271
+ Once an example script works, please make sure to add a comprehensive `README.md` that states how to use the example exactly. This README should include:
272
+ - An example command on how to run the example script as shown [here e.g.](https://github.com/huggingface/diffusers/tree/main/examples/dreambooth#running-locally-with-pytorch).
273
+ - A link to some training results (logs, models, ...) that show what the user can expect as shown [here e.g.](https://api.wandb.ai/report/patrickvonplaten/xm6cd5q5).
274
+ - If you are adding a non-official/research training example, **please don't forget** to add a sentence that you are maintaining this training example which includes your git handle as shown [here](https://github.com/huggingface/diffusers/tree/main/examples/research_projects/intel_opts#diffusers-examples-with-intel-optimizations).
275
+
276
+ If you are contributing to the official training examples, please also make sure to add a test to [examples/test_examples.py](https://github.com/huggingface/diffusers/blob/main/examples/test_examples.py). This is not necessary for non-official training examples.
277
+
278
+ ### 8. Fixing a "Good second issue"
279
+
280
+ *Good second issues* are marked by the [Good second issue](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+second+issue%22) label. Good second issues are
281
+ usually more complicated to solve than [Good first issues](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22).
282
+ The issue description usually gives less guidance on how to fix the issue and requires
283
+ a decent understanding of the library by the interested contributor.
284
+ If you are interested in tackling a second good issue, feel free to open a PR to fix it and link the PR to the issue. If you see that a PR has already been opened for this issue but did not get merged, have a look to understand why it wasn't merged and try to open an improved PR.
285
+ Good second issues are usually more difficult to get merged compared to good first issues, so don't hesitate to ask for help from the core maintainers. If your PR is almost finished the core maintainers can also jump into your PR and commit to it in order to get it merged.
286
+
287
+ ### 9. Adding pipelines, models, schedulers
288
+
289
+ Pipelines, models, and schedulers are the most important pieces of the Diffusers library.
290
+ They provide easy access to state-of-the-art diffusion technologies and thus allow the community to
291
+ build powerful generative AI applications.
292
+
293
+ By adding a new model, pipeline, or scheduler you might enable a new powerful use case for any of the user interfaces relying on Diffusers which can be of immense value for the whole generative AI ecosystem.
294
+
295
+ Diffusers has a couple of open feature requests for all three components - feel free to gloss over them
296
+ if you don't know yet what specific component you would like to add:
297
+ - [Model or pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22)
298
+ - [Scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
299
+
300
+ Before adding any of the three components, it is strongly recommended that you give the [Philosophy guide](https://github.com/huggingface/diffusers/blob/main/PHILOSOPHY.md) a read to better understand the design of any of the three components. Please be aware that
301
+ we cannot merge model, scheduler, or pipeline additions that strongly diverge from our design philosophy
302
+ as it will lead to API inconsistencies. If you fundamentally disagree with a design choice, please
303
+ open a [Feedback issue](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feedback.md&title=) instead so that it can be discussed whether a certain design
304
+ pattern/design choice shall be changed everywhere in the library and whether we shall update our design philosophy. Consistency across the library is very important for us.
305
+
306
+ Please make sure to add links to the original codebase/paper to the PR and ideally also ping the
307
+ original author directly on the PR so that they can follow the progress and potentially help with questions.
308
+
309
+ If you are unsure or stuck in the PR, don't hesitate to leave a message to ask for a first review or help.
310
+
311
+ ## How to write a good issue
312
+
313
+ **The better your issue is written, the higher the chances that it will be quickly resolved.**
314
+
315
+ 1. Make sure that you've used the correct template for your issue. You can pick between *Bug Report*, *Feature Request*, *Feedback about API Design*, *New model/pipeline/scheduler addition*, *Forum*, or a blank issue. Make sure to pick the correct one when opening [a new issue](https://github.com/huggingface/diffusers/issues/new/choose).
316
+ 2. **Be precise**: Give your issue a fitting title. Try to formulate your issue description as simple as possible. The more precise you are when submitting an issue, the less time it takes to understand the issue and potentially solve it. Make sure to open an issue for one issue only and not for multiple issues. If you found multiple issues, simply open multiple issues. If your issue is a bug, try to be as precise as possible about what bug it is - you should not just write "Error in diffusers".
317
+ 3. **Reproducibility**: No reproducible code snippet == no solution. If you encounter a bug, maintainers **have to be able to reproduce** it. Make sure that you include a code snippet that can be copy-pasted into a Python interpreter to reproduce the issue. Make sure that your code snippet works, *i.e.* that there are no missing imports or missing links to images, ... Your issue should contain an error message **and** a code snippet that can be copy-pasted without any changes to reproduce the exact same error message. If your issue is using local model weights or local data that cannot be accessed by the reader, the issue cannot be solved. If you cannot share your data or model, try to make a dummy model or dummy data.
318
+ 4. **Minimalistic**: Try to help the reader as much as you can to understand the issue as quickly as possible by staying as concise as possible. Remove all code / all information that is irrelevant to the issue. If you have found a bug, try to create the easiest code example you can to demonstrate your issue, do not just dump your whole workflow into the issue as soon as you have found a bug. E.g., if you train a model and get an error at some point during the training, you should first try to understand what part of the training code is responsible for the error and try to reproduce it with a couple of lines. Try to use dummy data instead of full datasets.
319
+ 5. Add links. If you are referring to a certain naming, method, or model make sure to provide a link so that the reader can better understand what you mean. If you are referring to a specific PR or issue, make sure to link it to your issue. Do not assume that the reader knows what you are talking about. The more links you add to your issue the better.
320
+ 6. Formatting. Make sure to nicely format your issue by formatting code into Python code syntax, and error messages into normal code syntax. See the [official GitHub formatting docs](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) for more information.
321
+ 7. Think of your issue not as a ticket to be solved, but rather as a beautiful entry to a well-written encyclopedia. Every added issue is a contribution to publicly available knowledge. By adding a nicely written issue you not only make it easier for maintainers to solve your issue, but you are helping the whole community to better understand a certain aspect of the library.
322
+
323
+ ## How to write a good PR
324
+
325
+ 1. Be a chameleon. Understand existing design patterns and syntax and make sure your code additions flow seamlessly into the existing code base. Pull requests that significantly diverge from existing design patterns or user interfaces will not be merged.
326
+ 2. Be laser focused. A pull request should solve one problem and one problem only. Make sure to not fall into the trap of "also fixing another problem while we're adding it". It is much more difficult to review pull requests that solve multiple, unrelated problems at once.
327
+ 3. If helpful, try to add a code snippet that displays an example of how your addition can be used.
328
+ 4. The title of your pull request should be a summary of its contribution.
329
+ 5. If your pull request addresses an issue, please mention the issue number in
330
+ the pull request description to make sure they are linked (and people
331
+ consulting the issue know you are working on it);
332
+ 6. To indicate a work in progress please prefix the title with `[WIP]`. These
333
+ are useful to avoid duplicated work, and to differentiate it from PRs ready
334
+ to be merged;
335
+ 7. Try to formulate and format your text as explained in [How to write a good issue](#how-to-write-a-good-issue).
336
+ 8. Make sure existing tests pass;
337
+ 9. Add high-coverage tests. No quality testing = no merge.
338
+ - If you are adding new `@slow` tests, make sure they pass using
339
+ `RUN_SLOW=1 python -m pytest tests/test_my_new_model.py`.
340
+ CircleCI does not run the slow tests, but GitHub actions does every night!
341
+ 10. All public methods must have informative docstrings that work nicely with markdown. See `[pipeline_latent_diffusion.py](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py)` for an example.
342
+ 11. Due to the rapidly growing repository, it is important to make sure that no files that would significantly weigh down the repository are added. This includes images, videos, and other non-text files. We prefer to leverage a hf.co hosted `dataset` like
343
+ [`hf-internal-testing`](https://huggingface.co/hf-internal-testing) or [huggingface/documentation-images](https://huggingface.co/datasets/huggingface/documentation-images) to place these files.
344
+ If an external contribution, feel free to add the images to your PR and ask a Hugging Face member to migrate your images
345
+ to this dataset.
346
+
347
+ ## How to open a PR
348
+
349
+ Before writing code, we strongly advise you to search through the existing PRs or
350
+ issues to make sure that nobody is already working on the same thing. If you are
351
+ unsure, it is always a good idea to open an issue to get some feedback.
352
+
353
+ You will need basic `git` proficiency to be able to contribute to
354
+ 🧨 Diffusers. `git` is not the easiest tool to use but it has the greatest
355
+ manual. Type `git --help` in a shell and enjoy. If you prefer books, [Pro
356
+ Git](https://git-scm.com/book/en/v2) is a very good reference.
357
+
358
+ Follow these steps to start contributing ([supported Python versions](https://github.com/huggingface/diffusers/blob/main/setup.py#L244)):
359
+
360
+ 1. Fork the [repository](https://github.com/huggingface/diffusers) by
361
+ clicking on the 'Fork' button on the repository's page. This creates a copy of the code
362
+ under your GitHub user account.
363
+
364
+ 2. Clone your fork to your local disk, and add the base repository as a remote:
365
+
366
+ ```bash
367
+ $ git clone git@github.com:<your Github handle>/diffusers.git
368
+ $ cd diffusers
369
+ $ git remote add upstream https://github.com/huggingface/diffusers.git
370
+ ```
371
+
372
+ 3. Create a new branch to hold your development changes:
373
+
374
+ ```bash
375
+ $ git checkout -b a-descriptive-name-for-my-changes
376
+ ```
377
+
378
+ **Do not** work on the `main` branch.
379
+
380
+ 4. Set up a development environment by running the following command in a virtual environment:
381
+
382
+ ```bash
383
+ $ pip install -e ".[dev]"
384
+ ```
385
+
386
+ If you have already cloned the repo, you might need to `git pull` to get the most recent changes in the
387
+ library.
388
+
389
+ 5. Develop the features on your branch.
390
+
391
+ As you work on the features, you should make sure that the test suite
392
+ passes. You should run the tests impacted by your changes like this:
393
+
394
+ ```bash
395
+ $ pytest tests/<TEST_TO_RUN>.py
396
+ ```
397
+
398
+ Before you run the tests, please make sure you install the dependencies required for testing. You can do so
399
+ with this command:
400
+
401
+ ```bash
402
+ $ pip install -e ".[test]"
403
+ ```
404
+
405
+ You can run the full test suite with the following command, but it takes
406
+ a beefy machine to produce a result in a decent amount of time now that
407
+ Diffusers has grown a lot. Here is the command for it:
408
+
409
+ ```bash
410
+ $ make test
411
+ ```
412
+
413
+ 🧨 Diffusers relies on `black` and `isort` to format its source code
414
+ consistently. After you make changes, apply automatic style corrections and code verifications
415
+ that can't be automated in one go with:
416
+
417
+ ```bash
418
+ $ make style
419
+ ```
420
+
421
+ 🧨 Diffusers also uses `ruff` and a few custom scripts to check for coding mistakes. Quality
422
+ control runs in CI, however, you can also run the same checks with:
423
+
424
+ ```bash
425
+ $ make quality
426
+ ```
427
+
428
+ Once you're happy with your changes, add changed files using `git add` and
429
+ make a commit with `git commit` to record your changes locally:
430
+
431
+ ```bash
432
+ $ git add modified_file.py
433
+ $ git commit
434
+ ```
435
+
436
+ It is a good idea to sync your copy of the code with the original
437
+ repository regularly. This way you can quickly account for changes:
438
+
439
+ ```bash
440
+ $ git pull upstream main
441
+ ```
442
+
443
+ Push the changes to your account using:
444
+
445
+ ```bash
446
+ $ git push -u origin a-descriptive-name-for-my-changes
447
+ ```
448
+
449
+ 6. Once you are satisfied, go to the
450
+ webpage of your fork on GitHub. Click on 'Pull request' to send your changes
451
+ to the project maintainers for review.
452
+
453
+ 7. It's ok if maintainers ask you for changes. It happens to core contributors
454
+ too! So everyone can see the changes in the Pull request, work in your local
455
+ branch and push the changes to your fork. They will automatically appear in
456
+ the pull request.
457
+
458
+ ### Tests
459
+
460
+ An extensive test suite is included to test the library behavior and several examples. Library tests can be found in
461
+ the [tests folder](https://github.com/huggingface/diffusers/tree/main/tests).
462
+
463
+ We like `pytest` and `pytest-xdist` because it's faster. From the root of the
464
+ repository, here's how to run tests with `pytest` for the library:
465
+
466
+ ```bash
467
+ $ python -m pytest -n auto --dist=loadfile -s -v ./tests/
468
+ ```
469
+
470
+ In fact, that's how `make test` is implemented!
471
+
472
+ You can specify a smaller set of tests in order to test only the feature
473
+ you're working on.
474
+
475
+ By default, slow tests are skipped. Set the `RUN_SLOW` environment variable to
476
+ `yes` to run them. This will download many gigabytes of models — make sure you
477
+ have enough disk space and a good Internet connection, or a lot of patience!
478
+
479
+ ```bash
480
+ $ RUN_SLOW=yes python -m pytest -n auto --dist=loadfile -s -v ./tests/
481
+ ```
482
+
483
+ `unittest` is fully supported, here's how to run tests with it:
484
+
485
+ ```bash
486
+ $ python -m unittest discover -s tests -t . -v
487
+ $ python -m unittest discover -s examples -t examples -v
488
+ ```
489
+
490
+ ### Syncing forked main with upstream (HuggingFace) main
491
+
492
+ To avoid pinging the upstream repository which adds reference notes to each upstream PR and sends unnecessary notifications to the developers involved in these PRs,
493
+ when syncing the main branch of a forked repository, please, follow these steps:
494
+ 1. When possible, avoid syncing with the upstream using a branch and PR on the forked repository. Instead, merge directly into the forked main.
495
+ 2. If a PR is absolutely necessary, use the following steps after checking out your branch:
496
+ ```
497
+ $ git checkout -b your-branch-for-syncing
498
+ $ git pull --squash --no-commit upstream main
499
+ $ git commit -m '<your message without GitHub references>'
500
+ $ git push --set-upstream origin your-branch-for-syncing
501
+ ```
502
+
503
+ ### Style guide
504
+
505
+ For documentation strings, 🧨 Diffusers follows the [google style](https://google.github.io/styleguide/pyguide.html).
diffusers/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
diffusers/MANIFEST.in ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ include LICENSE
2
+ include src/diffusers/utils/model_card_template.md
diffusers/Makefile ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .PHONY: deps_table_update modified_only_fixup extra_style_checks quality style fixup fix-copies test test-examples
2
+
3
+ # make sure to test the local checkout in scripts and not the pre-installed one (don't use quotes!)
4
+ export PYTHONPATH = src
5
+
6
+ check_dirs := examples scripts src tests utils
7
+
8
+ modified_only_fixup:
9
+ $(eval modified_py_files := $(shell python utils/get_modified_files.py $(check_dirs)))
10
+ @if test -n "$(modified_py_files)"; then \
11
+ echo "Checking/fixing $(modified_py_files)"; \
12
+ black $(modified_py_files); \
13
+ ruff $(modified_py_files); \
14
+ else \
15
+ echo "No library .py files were modified"; \
16
+ fi
17
+
18
+ # Update src/diffusers/dependency_versions_table.py
19
+
20
+ deps_table_update:
21
+ @python setup.py deps_table_update
22
+
23
+ deps_table_check_updated:
24
+ @md5sum src/diffusers/dependency_versions_table.py > md5sum.saved
25
+ @python setup.py deps_table_update
26
+ @md5sum -c --quiet md5sum.saved || (printf "\nError: the version dependency table is outdated.\nPlease run 'make fixup' or 'make style' and commit the changes.\n\n" && exit 1)
27
+ @rm md5sum.saved
28
+
29
+ # autogenerating code
30
+
31
+ autogenerate_code: deps_table_update
32
+
33
+ # Check that the repo is in a good state
34
+
35
+ repo-consistency:
36
+ python utils/check_dummies.py
37
+ python utils/check_repo.py
38
+ python utils/check_inits.py
39
+
40
+ # this target runs checks on all files
41
+
42
+ quality:
43
+ black --check $(check_dirs)
44
+ ruff $(check_dirs)
45
+ doc-builder style src/diffusers docs/source --max_len 119 --check_only --path_to_docs docs/source
46
+ python utils/check_doc_toc.py
47
+
48
+ # Format source code automatically and check is there are any problems left that need manual fixing
49
+
50
+ extra_style_checks:
51
+ python utils/custom_init_isort.py
52
+ doc-builder style src/diffusers docs/source --max_len 119 --path_to_docs docs/source
53
+ python utils/check_doc_toc.py --fix_and_overwrite
54
+
55
+ # this target runs checks on all files and potentially modifies some of them
56
+
57
+ style:
58
+ black $(check_dirs)
59
+ ruff $(check_dirs) --fix
60
+ ${MAKE} autogenerate_code
61
+ ${MAKE} extra_style_checks
62
+
63
+ # Super fast fix and check target that only works on relevant modified files since the branch was made
64
+
65
+ fixup: modified_only_fixup extra_style_checks autogenerate_code repo-consistency
66
+
67
+ # Make marked copies of snippets of codes conform to the original
68
+
69
+ fix-copies:
70
+ python utils/check_copies.py --fix_and_overwrite
71
+ python utils/check_dummies.py --fix_and_overwrite
72
+
73
+ # Run tests for the library
74
+
75
+ test:
76
+ python -m pytest -n auto --dist=loadfile -s -v ./tests/
77
+
78
+ # Run tests for examples
79
+
80
+ test-examples:
81
+ python -m pytest -n auto --dist=loadfile -s -v ./examples/
82
+
83
+
84
+ # Release stuff
85
+
86
+ pre-release:
87
+ python utils/release.py
88
+
89
+ pre-patch:
90
+ python utils/release.py --patch
91
+
92
+ post-release:
93
+ python utils/release.py --post_release
94
+
95
+ post-patch:
96
+ python utils/release.py --post_release --patch
diffusers/PHILOSOPHY.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--Copyright 2023 The HuggingFace Team. All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4
+ the License. You may obtain a copy of the License at
5
+
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9
+ an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
+ specific language governing permissions and limitations under the License.
11
+ -->
12
+
13
+ # Philosophy
14
+
15
+ 🧨 Diffusers provides **state-of-the-art** pretrained diffusion models across multiple modalities.
16
+ Its purpose is to serve as a **modular toolbox** for both inference and training.
17
+
18
+ We aim at building a library that stands the test of time and therefore take API design very seriously.
19
+
20
+ In a nutshell, Diffusers is built to be a natural extension of PyTorch. Therefore, most of our design choices are based on [PyTorch's Design Principles](https://pytorch.org/docs/stable/community/design.html#pytorch-design-philosophy). Let's go over the most important ones:
21
+
22
+ ## Usability over Performance
23
+
24
+ - While Diffusers has many built-in performance-enhancing features (see [Memory and Speed](https://huggingface.co/docs/diffusers/optimization/fp16)), models are always loaded with the highest precision and lowest optimization. Therefore, by default diffusion pipelines are always instantiated on CPU with float32 precision if not otherwise defined by the user. This ensures usability across different platforms and accelerators and means that no complex installations are required to run the library.
25
+ - Diffusers aim at being a **light-weight** package and therefore has very few required dependencies, but many soft dependencies that can improve performance (such as `accelerate`, `safetensors`, `onnx`, etc...). We strive to keep the library as lightweight as possible so that it can be added without much concern as a dependency on other packages.
26
+ - Diffusers prefers simple, self-explainable code over condensed, magic code. This means that short-hand code syntaxes such as lambda functions, and advanced PyTorch operators are often not desired.
27
+
28
+ ## Simple over easy
29
+
30
+ As PyTorch states, **explicit is better than implicit** and **simple is better than complex**. This design philosophy is reflected in multiple parts of the library:
31
+ - We follow PyTorch's API with methods like [`DiffusionPipeline.to`](https://huggingface.co/docs/diffusers/main/en/api/diffusion_pipeline#diffusers.DiffusionPipeline.to) to let the user handle device management.
32
+ - Raising concise error messages is preferred to silently correct erroneous input. Diffusers aims at teaching the user, rather than making the library as easy to use as possible.
33
+ - Complex model vs. scheduler logic is exposed instead of magically handled inside. Schedulers/Samplers are separated from diffusion models with minimal dependencies on each other. This forces the user to write the unrolled denoising loop. However, the separation allows for easier debugging and gives the user more control over adapting the denoising process or switching out diffusion models or schedulers.
34
+ - Separately trained components of the diffusion pipeline, *e.g.* the text encoder, the unet, and the variational autoencoder, each have their own model class. This forces the user to handle the interaction between the different model components, and the serialization format separates the model components into different files. However, this allows for easier debugging and customization. Dreambooth or textual inversion training
35
+ is very simple thanks to diffusers' ability to separate single components of the diffusion pipeline.
36
+
37
+ ## Tweakable, contributor-friendly over abstraction
38
+
39
+ For large parts of the library, Diffusers adopts an important design principle of the [Transformers library](https://github.com/huggingface/transformers), which is to prefer copy-pasted code over hasty abstractions. This design principle is very opinionated and stands in stark contrast to popular design principles such as [Don't repeat yourself (DRY)](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself).
40
+ In short, just like Transformers does for modeling files, diffusers prefers to keep an extremely low level of abstraction and very self-contained code for pipelines and schedulers.
41
+ Functions, long code blocks, and even classes can be copied across multiple files which at first can look like a bad, sloppy design choice that makes the library unmaintainable.
42
+ **However**, this design has proven to be extremely successful for Transformers and makes a lot of sense for community-driven, open-source machine learning libraries because:
43
+ - Machine Learning is an extremely fast-moving field in which paradigms, model architectures, and algorithms are changing rapidly, which therefore makes it very difficult to define long-lasting code abstractions.
44
+ - Machine Learning practitioners like to be able to quickly tweak existing code for ideation and research and therefore prefer self-contained code over one that contains many abstractions.
45
+ - Open-source libraries rely on community contributions and therefore must build a library that is easy to contribute to. The more abstract the code, the more dependencies, the harder to read, and the harder to contribute to. Contributors simply stop contributing to very abstract libraries out of fear of breaking vital functionality. If contributing to a library cannot break other fundamental code, not only is it more inviting for potential new contributors, but it is also easier to review and contribute to multiple parts in parallel.
46
+
47
+ At Hugging Face, we call this design the **single-file policy** which means that almost all of the code of a certain class should be written in a single, self-contained file. To read more about the philosophy, you can have a look
48
+ at [this blog post](https://huggingface.co/blog/transformers-design-philosophy).
49
+
50
+ In diffusers, we follow this philosophy for both pipelines and schedulers, but only partly for diffusion models. The reason we don't follow this design fully for diffusion models is because almost all diffusion pipelines, such
51
+ as [DDPM](https://huggingface.co/docs/diffusers/v0.12.0/en/api/pipelines/ddpm), [Stable Diffusion](https://huggingface.co/docs/diffusers/v0.12.0/en/api/pipelines/stable_diffusion/overview#stable-diffusion-pipelines), [UnCLIP (Dalle-2)](https://huggingface.co/docs/diffusers/v0.12.0/en/api/pipelines/unclip#overview) and [Imagen](https://imagen.research.google/) all rely on the same diffusion model, the [UNet](https://huggingface.co/docs/diffusers/api/models#diffusers.UNet2DConditionModel).
52
+
53
+ Great, now you should have generally understood why 🧨 Diffusers is designed the way it is 🤗.
54
+ We try to apply these design principles consistently across the library. Nevertheless, there are some minor exceptions to the philosophy or some unlucky design choices. If you have feedback regarding the design, we would ❤️ to hear it [directly on GitHub](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feedback.md&title=).
55
+
56
+ ## Design Philosophy in Details
57
+
58
+ Now, let's look a bit into the nitty-gritty details of the design philosophy. Diffusers essentially consist of three major classes, [pipelines](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines), [models](https://github.com/huggingface/diffusers/tree/main/src/diffusers/models), and [schedulers](https://github.com/huggingface/diffusers/tree/main/src/diffusers/schedulers).
59
+ Let's walk through more in-detail design decisions for each class.
60
+
61
+ ### Pipelines
62
+
63
+ Pipelines are designed to be easy to use (therefore do not follow [*Simple over easy*](#simple-over-easy) 100%)), are not feature complete, and should loosely be seen as examples of how to use [models](#models) and [schedulers](#schedulers) for inference.
64
+
65
+ The following design principles are followed:
66
+ - Pipelines follow the single-file policy. All pipelines can be found in individual directories under src/diffusers/pipelines. One pipeline folder corresponds to one diffusion paper/project/release. Multiple pipeline files can be gathered in one pipeline folder, as it’s done for [`src/diffusers/pipelines/stable-diffusion`](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines/stable_diffusion). If pipelines share similar functionality, one can make use of the [#Copied from mechanism](https://github.com/huggingface/diffusers/blob/125d783076e5bd9785beb05367a2d2566843a271/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py#L251).
67
+ - Pipelines all inherit from [`DiffusionPipeline`]
68
+ - Every pipeline consists of different model and scheduler components, that are documented in the [`model_index.json` file](https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/model_index.json), are accessible under the same name as attributes of the pipeline and can be shared between pipelines with [`DiffusionPipeline.components`](https://huggingface.co/docs/diffusers/main/en/api/diffusion_pipeline#diffusers.DiffusionPipeline.components) function.
69
+ - Every pipeline should be loadable via the [`DiffusionPipeline.from_pretrained`](https://huggingface.co/docs/diffusers/main/en/api/diffusion_pipeline#diffusers.DiffusionPipeline.from_pretrained) function.
70
+ - Pipelines should be used **only** for inference.
71
+ - Pipelines should be very readable, self-explanatory, and easy to tweak.
72
+ - Pipelines should be designed to build on top of each other and be easy to integrate into higher-level APIs.
73
+ - Pipelines are **not** intended to be feature-complete user interfaces. For future complete user interfaces one should rather have a look at [InvokeAI](https://github.com/invoke-ai/InvokeAI), [Diffuzers](https://github.com/abhishekkrthakur/diffuzers), and [lama-cleaner](https://github.com/Sanster/lama-cleaner)
74
+ - Every pipeline should have one and only one way to run it via a `__call__` method. The naming of the `__call__` arguments should be shared across all pipelines.
75
+ - Pipelines should be named after the task they are intended to solve.
76
+ - In almost all cases, novel diffusion pipelines shall be implemented in a new pipeline folder/file.
77
+
78
+ ### Models
79
+
80
+ Models are designed as configurable toolboxes that are natural extensions of [PyTorch's Module class](https://pytorch.org/docs/stable/generated/torch.nn.Module.html). They only partly follow the **single-file policy**.
81
+
82
+ The following design principles are followed:
83
+ - Models correspond to **a type of model architecture**. *E.g.* the [`UNet2DConditionModel`] class is used for all UNet variations that expect 2D image inputs and are conditioned on some context.
84
+ - All models can be found in [`src/diffusers/models`](https://github.com/huggingface/diffusers/tree/main/src/diffusers/models) and every model architecture shall be defined in its file, e.g. [`unet_2d_condition.py`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_2d_condition.py), [`transformer_2d.py`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/transformer_2d.py), etc...
85
+ - Models **do not** follow the single-file policy and should make use of smaller model building blocks, such as [`attention.py`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention.py), [`resnet.py`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py), [`embeddings.py`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/embeddings.py), etc... **Note**: This is in stark contrast to Transformers' modeling files and shows that models do not really follow the single-file policy.
86
+ - Models intend to expose complexity, just like PyTorch's module does, and give clear error messages.
87
+ - Models all inherit from `ModelMixin` and `ConfigMixin`.
88
+ - Models can be optimized for performance when it doesn’t demand major code changes, keeps backward compatibility, and gives significant memory or compute gain.
89
+ - Models should by default have the highest precision and lowest performance setting.
90
+ - To integrate new model checkpoints whose general architecture can be classified as an architecture that already exists in Diffusers, the existing model architecture shall be adapted to make it work with the new checkpoint. One should only create a new file if the model architecture is fundamentally different.
91
+ - Models should be designed to be easily extendable to future changes. This can be achieved by limiting public function arguments, configuration arguments, and "foreseeing" future changes, *e.g.* it is usually better to add `string` "...type" arguments that can easily be extended to new future types instead of boolean `is_..._type` arguments. Only the minimum amount of changes shall be made to existing architectures to make a new model checkpoint work.
92
+ - The model design is a difficult trade-off between keeping code readable and concise and supporting many model checkpoints. For most parts of the modeling code, classes shall be adapted for new model checkpoints, while there are some exceptions where it is preferred to add new classes to make sure the code is kept concise and
93
+ readable longterm, such as [UNet blocks](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_2d_blocks.py) and [Attention processors](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py).
94
+
95
+ ### Schedulers
96
+
97
+ Schedulers are responsible to guide the denoising process for inference as well as to define a noise schedule for training. They are designed as individual classes with loadable configuration files and strongly follow the **single-file policy**.
98
+
99
+ The following design principles are followed:
100
+ - All schedulers are found in [`src/diffusers/schedulers`](https://github.com/huggingface/diffusers/tree/main/src/diffusers/schedulers).
101
+ - Schedulers are **not** allowed to import from large utils files and shall be kept very self-contained.
102
+ - One scheduler python file corresponds to one scheduler algorithm (as might be defined in a paper).
103
+ - If schedulers share similar functionalities, we can make use of the `#Copied from` mechanism.
104
+ - Schedulers all inherit from `SchedulerMixin` and `ConfigMixin`.
105
+ - Schedulers can be easily swapped out with the [`ConfigMixin.from_config`](https://huggingface.co/docs/diffusers/main/en/api/configuration#diffusers.ConfigMixin.from_config) method as explained in detail [here](./using-diffusers/schedulers.md).
106
+ - Every scheduler has to have a `set_num_inference_steps`, and a `step` function. `set_num_inference_steps(...)` has to be called before every denoising process, *i.e.* before `step(...)` is called.
107
+ - Every scheduler exposes the timesteps to be "looped over" via a `timesteps` attribute, which is an array of timesteps the model will be called upon
108
+ - The `step(...)` function takes a predicted model output and the "current" sample (x_t) and returns the "previous", slightly more denoised sample (x_t-1).
109
+ - Given the complexity of diffusion schedulers, the `step` function does not expose all the complexity and can be a bit of a "black box".
110
+ - In almost all cases, novel schedulers shall be implemented in a new scheduling file.
diffusers/README.md ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <p align="center">
2
+ <br>
3
+ <img src="https://raw.githubusercontent.com/huggingface/diffusers/main/docs/source/en/imgs/diffusers_library.jpg" width="400"/>
4
+ <br>
5
+ <p>
6
+ <p align="center">
7
+ <a href="https://github.com/huggingface/diffusers/blob/main/LICENSE">
8
+ <img alt="GitHub" src="https://img.shields.io/github/license/huggingface/datasets.svg?color=blue">
9
+ </a>
10
+ <a href="https://github.com/huggingface/diffusers/releases">
11
+ <img alt="GitHub release" src="https://img.shields.io/github/release/huggingface/diffusers.svg">
12
+ </a>
13
+ <a href="CODE_OF_CONDUCT.md">
14
+ <img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg">
15
+ </a>
16
+ </p>
17
+
18
+ 🤗 Diffusers is the go-to library for state-of-the-art pretrained diffusion models for generating images, audio, and even 3D structures of molecules. Whether you're looking for a simple inference solution or training your own diffusion models, 🤗 Diffusers is a modular toolbox that supports both. Our library is designed with a focus on [usability over performance](https://huggingface.co/docs/diffusers/conceptual/philosophy#usability-over-performance), [simple over easy](https://huggingface.co/docs/diffusers/conceptual/philosophy#simple-over-easy), and [customizability over abstractions](https://huggingface.co/docs/diffusers/conceptual/philosophy#tweakable-contributorfriendly-over-abstraction).
19
+
20
+ 🤗 Diffusers offers three core components:
21
+
22
+ - State-of-the-art [diffusion pipelines](https://huggingface.co/docs/diffusers/api/pipelines/overview) that can be run in inference with just a few lines of code.
23
+ - Interchangeable noise [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview) for different diffusion speeds and output quality.
24
+ - Pretrained [models](https://huggingface.co/docs/diffusers/api/models) that can be used as building blocks, and combined with schedulers, for creating your own end-to-end diffusion systems.
25
+
26
+ ## Installation
27
+
28
+ We recommend installing 🤗 Diffusers in a virtual environment from PyPi or Conda. For more details about installing [PyTorch](https://pytorch.org/get-started/locally/) and [Flax](https://flax.readthedocs.io/en/latest/#installation), please refer to their official documentation.
29
+
30
+ ### PyTorch
31
+
32
+ With `pip` (official package):
33
+
34
+ ```bash
35
+ pip install --upgrade diffusers[torch]
36
+ ```
37
+
38
+ With `conda` (maintained by the community):
39
+
40
+ ```sh
41
+ conda install -c conda-forge diffusers
42
+ ```
43
+
44
+ ### Flax
45
+
46
+ With `pip` (official package):
47
+
48
+ ```bash
49
+ pip install --upgrade diffusers[flax]
50
+ ```
51
+
52
+ ### Apple Silicon (M1/M2) support
53
+
54
+ Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggingface.co/docs/diffusers/optimization/mps) guide.
55
+
56
+ ## Quickstart
57
+
58
+ Generating outputs is super easy with 🤗 Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 4000+ checkpoints):
59
+
60
+ ```python
61
+ from diffusers import DiffusionPipeline
62
+ import torch
63
+
64
+ pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
65
+ pipeline.to("cuda")
66
+ pipeline("An image of a squirrel in Picasso style").images[0]
67
+ ```
68
+
69
+ You can also dig into the models and schedulers toolbox to build your own diffusion system:
70
+
71
+ ```python
72
+ from diffusers import DDPMScheduler, UNet2DModel
73
+ from PIL import Image
74
+ import torch
75
+ import numpy as np
76
+
77
+ scheduler = DDPMScheduler.from_pretrained("google/ddpm-cat-256")
78
+ model = UNet2DModel.from_pretrained("google/ddpm-cat-256").to("cuda")
79
+ scheduler.set_timesteps(50)
80
+
81
+ sample_size = model.config.sample_size
82
+ noise = torch.randn((1, 3, sample_size, sample_size)).to("cuda")
83
+ input = noise
84
+
85
+ for t in scheduler.timesteps:
86
+ with torch.no_grad():
87
+ noisy_residual = model(input, t).sample
88
+ prev_noisy_sample = scheduler.step(noisy_residual, t, input).prev_sample
89
+ input = prev_noisy_sample
90
+
91
+ image = (input / 2 + 0.5).clamp(0, 1)
92
+ image = image.cpu().permute(0, 2, 3, 1).numpy()[0]
93
+ image = Image.fromarray((image * 255).round().astype("uint8"))
94
+ image
95
+ ```
96
+
97
+ Check out the [Quickstart](https://huggingface.co/docs/diffusers/quicktour) to launch your diffusion journey today!
98
+
99
+ ## How to navigate the documentation
100
+
101
+ | **Documentation** | **What can I learn?** |
102
+ |---------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
103
+ | [Tutorial](https://huggingface.co/docs/diffusers/tutorials/tutorial_overview) | A basic crash course for learning how to use the library's most important features like using models and schedulers to build your own diffusion system, and training your own diffusion model. |
104
+ | [Loading](https://huggingface.co/docs/diffusers/using-diffusers/loading_overview) | Guides for how to load and configure all the components (pipelines, models, and schedulers) of the library, as well as how to use different schedulers. |
105
+ | [Pipelines for inference](https://huggingface.co/docs/diffusers/using-diffusers/pipeline_overview) | Guides for how to use pipelines for different inference tasks, batched generation, controlling generated outputs and randomness, and how to contribute a pipeline to the library. |
106
+ | [Optimization](https://huggingface.co/docs/diffusers/optimization/opt_overview) | Guides for how to optimize your diffusion model to run faster and consume less memory. |
107
+ | [Training](https://huggingface.co/docs/diffusers/training/overview) | Guides for how to train a diffusion model for different tasks with different training techniques. |
108
+ ## Contribution
109
+
110
+ We ❤️ contributions from the open-source community!
111
+ If you want to contribute to this library, please check out our [Contribution guide](https://github.com/huggingface/diffusers/blob/main/CONTRIBUTING.md).
112
+ You can look out for [issues](https://github.com/huggingface/diffusers/issues) you'd like to tackle to contribute to the library.
113
+ - See [Good first issues](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) for general opportunities to contribute
114
+ - See [New model/pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22) to contribute exciting new diffusion models / diffusion pipelines
115
+ - See [New scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
116
+
117
+ Also, say 👋 in our public Discord channel <a href="https://discord.gg/G7tWnz98XR"><img alt="Join us on Discord" src="https://img.shields.io/discord/823813159592001537?color=5865F2&logo=discord&logoColor=white"></a>. We discuss the hottest trends about diffusion models, help each other with contributions, personal projects or
118
+ just hang out ☕.
119
+
120
+
121
+ ## Popular Tasks & Pipelines
122
+
123
+ <table>
124
+ <tr>
125
+ <th>Task</th>
126
+ <th>Pipeline</th>
127
+ <th>🤗 Hub</th>
128
+ </tr>
129
+ <tr style="border-top: 2px solid black">
130
+ <td>Unconditional Image Generation</td>
131
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/ddpm"> DDPM </a></td>
132
+ <td><a href="https://huggingface.co/google/ddpm-ema-church-256"> google/ddpm-ema-church-256 </a></td>
133
+ </tr>
134
+ <tr style="border-top: 2px solid black">
135
+ <td>Text-to-Image</td>
136
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/text2img">Stable Diffusion Text-to-Image</a></td>
137
+ <td><a href="https://huggingface.co/runwayml/stable-diffusion-v1-5"> runwayml/stable-diffusion-v1-5 </a></td>
138
+ </tr>
139
+ <tr>
140
+ <td>Text-to-Image</td>
141
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/unclip">unclip</a></td>
142
+ <td><a href="https://huggingface.co/kakaobrain/karlo-v1-alpha"> kakaobrain/karlo-v1-alpha </a></td>
143
+ </tr>
144
+ <tr>
145
+ <td>Text-to-Image</td>
146
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/if">DeepFloyd IF</a></td>
147
+ <td><a href="https://huggingface.co/DeepFloyd/IF-I-XL-v1.0"> DeepFloyd/IF-I-XL-v1.0 </a></td>
148
+ </tr>
149
+ <tr>
150
+ <td>Text-to-Image</td>
151
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/kandinsky">Kandinsky</a></td>
152
+ <td><a href="https://huggingface.co/kandinsky-community/kandinsky-2-2-decoder"> kandinsky-community/kandinsky-2-2-decoder </a></td>
153
+ </tr>
154
+ <tr style="border-top: 2px solid black">
155
+ <td>Text-guided Image-to-Image</td>
156
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/controlnet">Controlnet</a></td>
157
+ <td><a href="https://huggingface.co/lllyasviel/sd-controlnet-canny"> lllyasviel/sd-controlnet-canny </a></td>
158
+ </tr>
159
+ <tr>
160
+ <td>Text-guided Image-to-Image</td>
161
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">Instruct Pix2Pix</a></td>
162
+ <td><a href="https://huggingface.co/timbrooks/instruct-pix2pix"> timbrooks/instruct-pix2pix </a></td>
163
+ </tr>
164
+ <tr>
165
+ <td>Text-guided Image-to-Image</td>
166
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/img2img">Stable Diffusion Image-to-Image</a></td>
167
+ <td><a href="https://huggingface.co/runwayml/stable-diffusion-v1-5"> runwayml/stable-diffusion-v1-5 </a></td>
168
+ </tr>
169
+ <tr style="border-top: 2px solid black">
170
+ <td>Text-guided Image Inpainting</td>
171
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion Inpaint</a></td>
172
+ <td><a href="https://huggingface.co/runwayml/stable-diffusion-inpainting"> runwayml/stable-diffusion-inpainting </a></td>
173
+ </tr>
174
+ <tr style="border-top: 2px solid black">
175
+ <td>Image Variation</td>
176
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/image_variation">Stable Diffusion Image Variation</a></td>
177
+ <td><a href="https://huggingface.co/lambdalabs/sd-image-variations-diffusers"> lambdalabs/sd-image-variations-diffusers </a></td>
178
+ </tr>
179
+ <tr style="border-top: 2px solid black">
180
+ <td>Super Resolution</td>
181
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/upscale">Stable Diffusion Upscale</a></td>
182
+ <td><a href="https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler"> stabilityai/stable-diffusion-x4-upscaler </a></td>
183
+ </tr>
184
+ <tr>
185
+ <td>Super Resolution</td>
186
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/latent_upscale">Stable Diffusion Latent Upscale</a></td>
187
+ <td><a href="https://huggingface.co/stabilityai/sd-x2-latent-upscaler"> stabilityai/sd-x2-latent-upscaler </a></td>
188
+ </tr>
189
+ </table>
190
+
191
+ ## Popular libraries using 🧨 Diffusers
192
+
193
+ - https://github.com/microsoft/TaskMatrix
194
+ - https://github.com/invoke-ai/InvokeAI
195
+ - https://github.com/apple/ml-stable-diffusion
196
+ - https://github.com/Sanster/lama-cleaner
197
+ - https://github.com/IDEA-Research/Grounded-Segment-Anything
198
+ - https://github.com/ashawkey/stable-dreamfusion
199
+ - https://github.com/deep-floyd/IF
200
+ - https://github.com/bentoml/BentoML
201
+ - https://github.com/bmaltais/kohya_ss
202
+ - +3000 other amazing GitHub repositories 💪
203
+
204
+ Thank you for using us ❤️
205
+
206
+ ## Credits
207
+
208
+ This library concretizes previous work by many different authors and would not have been possible without their great research and implementations. We'd like to thank, in particular, the following implementations which have helped us in our development and without which the API could not have been as polished today:
209
+
210
+ - @CompVis' latent diffusion models library, available [here](https://github.com/CompVis/latent-diffusion)
211
+ - @hojonathanho original DDPM implementation, available [here](https://github.com/hojonathanho/diffusion) as well as the extremely useful translation into PyTorch by @pesser, available [here](https://github.com/pesser/pytorch_diffusion)
212
+ - @ermongroup's DDIM implementation, available [here](https://github.com/ermongroup/ddim)
213
+ - @yang-song's Score-VE and Score-VP implementations, available [here](https://github.com/yang-song/score_sde_pytorch)
214
+
215
+ We also want to thank @heejkoo for the very helpful overview of papers, code and resources on diffusion models, available [here](https://github.com/heejkoo/Awesome-Diffusion-Models) as well as @crowsonkb and @rromb for useful discussions and insights.
216
+
217
+ ## Citation
218
+
219
+ ```bibtex
220
+ @misc{von-platen-etal-2022-diffusers,
221
+ author = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Pedro Cuenca and Nathan Lambert and Kashif Rasul and Mishig Davaadorj and Thomas Wolf},
222
+ title = {Diffusers: State-of-the-art diffusion models},
223
+ year = {2022},
224
+ publisher = {GitHub},
225
+ journal = {GitHub repository},
226
+ howpublished = {\url{https://github.com/huggingface/diffusers}}
227
+ }
228
+ ```
diffusers/_typos.toml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Files for typos
2
+ # Instruction: https://github.com/marketplace/actions/typos-action#getting-started
3
+
4
+ [default.extend-identifiers]
5
+
6
+ [default.extend-words]
7
+ NIN="NIN" # NIN is used in scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py
8
+ nd="np" # nd may be np (numpy)
9
+ parms="parms" # parms is used in scripts/convert_original_stable_diffusion_to_diffusers.py
10
+
11
+
12
+ [files]
13
+ extend-exclude = ["_typos.toml"]
diffusers/diffusers/.github/ISSUE_TEMPLATE/bug-report.yml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "\U0001F41B Bug Report"
2
+ description: Report a bug on diffusers
3
+ labels: [ "bug" ]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Thanks a lot for taking the time to file this issue 🤗.
9
+ Issues do not only help to improve the library, but also publicly document common problems, questions, workflows for the whole community!
10
+ Thus, issues are of the same importance as pull requests when contributing to this library ❤️.
11
+ In order to make your issue as **useful for the community as possible**, let's try to stick to some simple guidelines:
12
+ - 1. Please try to be as precise and concise as possible.
13
+ *Give your issue a fitting title. Assume that someone which very limited knowledge of diffusers can understand your issue. Add links to the source code, documentation other issues, pull requests etc...*
14
+ - 2. If your issue is about something not working, **always** provide a reproducible code snippet. The reader should be able to reproduce your issue by **only copy-pasting your code snippet into a Python shell**.
15
+ *The community cannot solve your issue if it cannot reproduce it. If your bug is related to training, add your training script and make everything needed to train public. Otherwise, just add a simple Python code snippet.*
16
+ - 3. Add the **minimum amount of code / context that is needed to understand, reproduce your issue**.
17
+ *Make the life of maintainers easy. `diffusers` is getting many issues every day. Make sure your issue is about one bug and one bug only. Make sure you add only the context, code needed to understand your issues - nothing more. Generally, every issue is a way of documenting this library, try to make it a good documentation entry.*
18
+ - type: markdown
19
+ attributes:
20
+ value: |
21
+ For more in-detail information on how to write good issues you can have a look [here](https://huggingface.co/course/chapter8/5?fw=pt)
22
+ - type: textarea
23
+ id: bug-description
24
+ attributes:
25
+ label: Describe the bug
26
+ description: A clear and concise description of what the bug is. If you intend to submit a pull request for this issue, tell us in the description. Thanks!
27
+ placeholder: Bug description
28
+ validations:
29
+ required: true
30
+ - type: textarea
31
+ id: reproduction
32
+ attributes:
33
+ label: Reproduction
34
+ description: Please provide a minimal reproducible code which we can copy/paste and reproduce the issue.
35
+ placeholder: Reproduction
36
+ validations:
37
+ required: true
38
+ - type: textarea
39
+ id: logs
40
+ attributes:
41
+ label: Logs
42
+ description: "Please include the Python logs if you can."
43
+ render: shell
44
+ - type: textarea
45
+ id: system-info
46
+ attributes:
47
+ label: System Info
48
+ description: Please share your system info with us. You can run the command `diffusers-cli env` and copy-paste its output below.
49
+ placeholder: diffusers version, platform, python version, ...
50
+ validations:
51
+ required: true
52
+ - type: textarea
53
+ id: who-can-help
54
+ attributes:
55
+ label: Who can help?
56
+ description: |
57
+ Your issue will be replied to more quickly if you can figure out the right person to tag with @
58
+ If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
59
+
60
+ All issues are read by one of the core maintainers, so if you don't know who to tag, just leave this blank and
61
+ a core maintainer will ping the right person.
62
+
63
+ Please tag fewer than 3 people.
64
+
65
+ General library related questions: @patrickvonplaten and @sayakpaul
66
+
67
+ Questions on the training examples: @williamberman, @sayakpaul, @yiyixuxu
68
+
69
+ Questions on memory optimizations, LoRA, float16, etc.: @williamberman, @patrickvonplaten, and @sayakpaul
70
+
71
+ Questions on schedulers: @patrickvonplaten and @williamberman
72
+
73
+ Questions on models and pipelines: @patrickvonplaten, @sayakpaul, and @williamberman
74
+
75
+ Questions on JAX- and MPS-related things: @pcuenca
76
+
77
+ Questions on audio pipelines: @patrickvonplaten, @kashif, and @sanchit-gandhi
78
+
79
+ Documentation: @stevhliu and @yiyixuxu
80
+ placeholder: "@Username ..."
diffusers/diffusers/.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ contact_links:
2
+ - name: Blank issue
3
+ url: https://github.com/huggingface/diffusers/issues/new
4
+ about: Other
5
+ - name: Forum
6
+ url: https://discuss.huggingface.co/
7
+ about: General usage questions and community discussions