migaogao123 commited on
Commit
60aa613
·
verified ·
1 Parent(s): e291b5b

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -278,3 +278,15 @@ pythonProject/.venv/Scripts/torchfrtrace.exe filter=lfs diff=lfs merge=lfs -text
278
  pythonProject/.venv/Scripts/torchrun.exe filter=lfs diff=lfs merge=lfs -text
279
  pythonProject/.venv/Scripts/tqdm.exe filter=lfs diff=lfs merge=lfs -text
280
  pythonProject/diffusers-main/docs/source/en/imgs/access_request.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  pythonProject/.venv/Scripts/torchrun.exe filter=lfs diff=lfs merge=lfs -text
279
  pythonProject/.venv/Scripts/tqdm.exe filter=lfs diff=lfs merge=lfs -text
280
  pythonProject/diffusers-main/docs/source/en/imgs/access_request.png filter=lfs diff=lfs merge=lfs -text
281
+ cudnn-windows-x86_64-8.9.5.30_cuda11-archive/bin/cudnn_adv_infer64_8.dll filter=lfs diff=lfs merge=lfs -text
282
+ pythonProject/.venv/Lib/site-packages/accelerate/__pycache__/accelerator.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
283
+ pythonProject/.venv/Lib/site-packages/charset_normalizer/md__mypyc.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
284
+ pythonProject/.venv/Lib/site-packages/diffusers/models/__pycache__/attention_processor.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
285
+ pythonProject/.venv/Lib/site-packages/huggingface_hub/__pycache__/hf_api.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
286
+ pythonProject/.venv/Lib/site-packages/idna/__pycache__/idnadata.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
287
+ pythonProject/.venv/Lib/site-packages/mpmath/__pycache__/function_docs.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
288
+ pythonProject/.venv/Lib/site-packages/torch/lib/cublasLt64_11.dll filter=lfs diff=lfs merge=lfs -text
289
+ pythonProject/.venv/Lib/site-packages/torch/lib/cudnn_engines_precompiled64_9.dll filter=lfs diff=lfs merge=lfs -text
290
+ pythonProject/.venv/Lib/site-packages/torch/lib/dnnl.lib filter=lfs diff=lfs merge=lfs -text
291
+ pythonProject/.venv/Lib/site-packages/torch/lib/torch_cuda.dll filter=lfs diff=lfs merge=lfs -text
292
+ test/torch-2.4.0+cu118-cp39-cp39-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
cudnn-windows-x86_64-8.7.0.84_cuda11-archive.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55328581df06e161284b25c4869afb5fe59b7e9782d8743d8ee0c621892ad09c
3
+ size 708092962
cudnn-windows-x86_64-8.9.5.30_cuda11-archive.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e42aaa92203cc101a1619656ae50852a0d818a06ca99684c5f51ba95bd7a7cf9
3
+ size 701179425
cudnn-windows-x86_64-8.9.5.30_cuda11-archive/bin/cudnn_adv_infer64_8.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07386a02ca57f5c4fbf96b972f8dd156f1bb3439376b9be0417073756a317391
3
+ size 125478440
pythonProject/.idea/workspace.xml ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="6cd5c228-c428-493a-a5df-048d51ab7155" name="更改" comment="" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="FileTemplateManagerImpl">
14
+ <option name="RECENT_TEMPLATES">
15
+ <list>
16
+ <option value="Python Script" />
17
+ </list>
18
+ </option>
19
+ </component>
20
+ <component name="Git.Settings">
21
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/diffusers" />
22
+ </component>
23
+ <component name="ProjectColorInfo">{
24
+ &quot;associatedIndex&quot;: 3
25
+ }</component>
26
+ <component name="ProjectId" id="32VglE3NgTw2xUJNBLQZGFL8DpW" />
27
+ <component name="ProjectViewState">
28
+ <option name="hideEmptyMiddlePackages" value="true" />
29
+ <option name="showLibraryContents" value="true" />
30
+ </component>
31
+ <component name="PropertiesComponent">{
32
+ &quot;keyToString&quot;: {
33
+ &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
34
+ &quot;Python.pipeline_qwenimage_edit.executor&quot;: &quot;Run&quot;,
35
+ &quot;Python.run.executor&quot;: &quot;Run&quot;,
36
+ &quot;Python.upload.executor&quot;: &quot;Run&quot;,
37
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
38
+ &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
39
+ &quot;last_opened_file_path&quot;: &quot;E:/Qwen-image/pythonProject&quot;,
40
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
41
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
42
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
43
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
44
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
45
+ &quot;settings.editor.selected.configurable&quot;: &quot;com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable&quot;,
46
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
47
+ }
48
+ }</component>
49
+ <component name="RunManager" selected="Python.upload">
50
+ <configuration name="pipeline_qwenimage_edit" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
51
+ <module name="pythonProject" />
52
+ <option name="ENV_FILES" value="" />
53
+ <option name="INTERPRETER_OPTIONS" value="" />
54
+ <option name="PARENT_ENVS" value="true" />
55
+ <envs>
56
+ <env name="PYTHONUNBUFFERED" value="1" />
57
+ </envs>
58
+ <option name="SDK_HOME" value="" />
59
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.venv/Lib/site-packages/diffusers/pipelines/qwenimage" />
60
+ <option name="IS_MODULE_SDK" value="true" />
61
+ <option name="ADD_CONTENT_ROOTS" value="true" />
62
+ <option name="ADD_SOURCE_ROOTS" value="true" />
63
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
64
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/.venv/Lib/site-packages/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py" />
65
+ <option name="PARAMETERS" value="" />
66
+ <option name="SHOW_COMMAND_LINE" value="false" />
67
+ <option name="EMULATE_TERMINAL" value="false" />
68
+ <option name="MODULE_MODE" value="false" />
69
+ <option name="REDIRECT_INPUT" value="false" />
70
+ <option name="INPUT_FILE" value="" />
71
+ <method v="2" />
72
+ </configuration>
73
+ <configuration name="run" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
74
+ <module name="pythonProject" />
75
+ <option name="ENV_FILES" value="" />
76
+ <option name="INTERPRETER_OPTIONS" value="" />
77
+ <option name="PARENT_ENVS" value="true" />
78
+ <envs>
79
+ <env name="PYTHONUNBUFFERED" value="1" />
80
+ </envs>
81
+ <option name="SDK_HOME" value="" />
82
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
83
+ <option name="IS_MODULE_SDK" value="true" />
84
+ <option name="ADD_CONTENT_ROOTS" value="true" />
85
+ <option name="ADD_SOURCE_ROOTS" value="true" />
86
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
87
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/run.py" />
88
+ <option name="PARAMETERS" value="" />
89
+ <option name="SHOW_COMMAND_LINE" value="false" />
90
+ <option name="EMULATE_TERMINAL" value="false" />
91
+ <option name="MODULE_MODE" value="false" />
92
+ <option name="REDIRECT_INPUT" value="false" />
93
+ <option name="INPUT_FILE" value="" />
94
+ <method v="2" />
95
+ </configuration>
96
+ <configuration name="upload" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
97
+ <module name="pythonProject" />
98
+ <option name="ENV_FILES" value="" />
99
+ <option name="INTERPRETER_OPTIONS" value="" />
100
+ <option name="PARENT_ENVS" value="true" />
101
+ <envs>
102
+ <env name="PYTHONUNBUFFERED" value="1" />
103
+ </envs>
104
+ <option name="SDK_HOME" value="" />
105
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
106
+ <option name="IS_MODULE_SDK" value="true" />
107
+ <option name="ADD_CONTENT_ROOTS" value="true" />
108
+ <option name="ADD_SOURCE_ROOTS" value="true" />
109
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
110
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/upload.py" />
111
+ <option name="PARAMETERS" value="" />
112
+ <option name="SHOW_COMMAND_LINE" value="false" />
113
+ <option name="EMULATE_TERMINAL" value="false" />
114
+ <option name="MODULE_MODE" value="false" />
115
+ <option name="REDIRECT_INPUT" value="false" />
116
+ <option name="INPUT_FILE" value="" />
117
+ <method v="2" />
118
+ </configuration>
119
+ <recent_temporary>
120
+ <list>
121
+ <item itemvalue="Python.upload" />
122
+ <item itemvalue="Python.run" />
123
+ <item itemvalue="Python.pipeline_qwenimage_edit" />
124
+ </list>
125
+ </recent_temporary>
126
+ </component>
127
+ <component name="SharedIndexes">
128
+ <attachedChunks>
129
+ <set>
130
+ <option value="bundled-js-predefined-d6986cc7102b-b598e85cdad2-JavaScript-PY-252.25557.178" />
131
+ <option value="bundled-python-sdk-ce6832f46686-7b97d883f26b-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-252.25557.178" />
132
+ </set>
133
+ </attachedChunks>
134
+ </component>
135
+ <component name="TaskManager">
136
+ <task active="true" id="Default" summary="默认任务">
137
+ <changelist id="6cd5c228-c428-493a-a5df-048d51ab7155" name="更改" comment="" />
138
+ <created>1757511304795</created>
139
+ <option name="number" value="Default" />
140
+ <option name="presentableId" value="Default" />
141
+ <updated>1757511304795</updated>
142
+ <workItem from="1757511374608" duration="52000" />
143
+ <workItem from="1757511452246" duration="4208000" />
144
+ <workItem from="1757517057811" duration="773000" />
145
+ <workItem from="1757518155406" duration="1395000" />
146
+ <workItem from="1757522576554" duration="9203000" />
147
+ <workItem from="1757535240431" duration="6321000" />
148
+ <workItem from="1757547223037" duration="4868000" />
149
+ </task>
150
+ <servers />
151
+ </component>
152
+ <component name="TypeScriptGeneratedFilesManager">
153
+ <option name="version" value="3" />
154
+ </component>
155
+ <component name="com.intellij.coverage.CoverageDataManagerImpl">
156
+ <SUITE FILE_PATH="coverage/pythonProject$run.coverage" NAME="run Coverage Results" MODIFIED="1757530567397" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
157
+ <SUITE FILE_PATH="coverage/pythonProject$pipeline_qwenimage_edit.coverage" NAME="pipeline_qwenimage_edit Coverage Results" MODIFIED="1757527531230" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/.venv/Lib/site-packages/diffusers/pipelines/qwenimage" />
158
+ <SUITE FILE_PATH="coverage/pythonProject$upload.coverage" NAME="upload Coverage Results" MODIFIED="1757551342588" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
159
+ </component>
160
+ </project>
pythonProject/.venv/Lib/site-packages/accelerate/__pycache__/accelerator.cpython-310.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f11f1b61c9eaab54486a6675ef83b3a2cfe64ff105ff6893fcf07a150dbfd01
3
+ size 133952
pythonProject/.venv/Lib/site-packages/charset_normalizer/md__mypyc.cp310-win_amd64.pyd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d91cd76d7ba0e99252288b5191c50db5be0d9e2f2bf5fead5dc7bbfff72ba2d
3
+ size 125952
pythonProject/.venv/Lib/site-packages/diffusers/models/__pycache__/attention_processor.cpython-310.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42b8602cdafd844231726c65d60e0d79b7dd97bd2502704a5e8f9a369aa74cf5
3
+ size 118386
pythonProject/.venv/Lib/site-packages/huggingface_hub/__pycache__/hf_api.cpython-310.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebf20c1ff5a362bc942c7b8f89817e9aee7d76e8d72f1a2b004aca86741fa2f2
3
+ size 391447
pythonProject/.venv/Lib/site-packages/idna/__pycache__/idnadata.cpython-310.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f4ee87963a62622b450b734fd1d6d24b9aa1614eeea0b7a57c83d95454cc31a
3
+ size 194421
pythonProject/.venv/Lib/site-packages/mpmath/__pycache__/function_docs.cpython-310.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:402fe5a2bcd4de32fcef67d9718d18c49a49dc17c5c9603a39998af807ac4f84
3
+ size 283816
pythonProject/.venv/Lib/site-packages/torch/lib/cublasLt64_11.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d06ca4e4893adb7a153ecd23a540e92817c967312b44646d8c3f91b089196e6
3
+ size 544070144
pythonProject/.venv/Lib/site-packages/torch/lib/cudnn_engines_precompiled64_9.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27022be937e4c3a7e7d48178ffe9ea21b8fa4e16d0cd240a88f5381773fac504
3
+ size 589969464
pythonProject/.venv/Lib/site-packages/torch/lib/dnnl.lib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef15dc6d93273cdfbcc135a29994cabf43c1ea55082ceb09e9c61cb4348b4c13
3
+ size 647431256
pythonProject/.venv/Lib/site-packages/torch/lib/torch_cuda.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eef13667d7e9d96a83e4ab5071dbb5c4531ec84e1411c1317e7a1b44e1560d97
3
+ size 1229529088
pythonProject/diffusers-main/utils/update_metadata.py ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2025 The HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """
16
+ Utility that updates the metadata of the Diffusers library in the repository `huggingface/diffusers-metadata`.
17
+
18
+ Usage for an update (as used by the GitHub action `update_metadata`):
19
+
20
+ ```bash
21
+ python utils/update_metadata.py
22
+ ```
23
+
24
+ Script modified from:
25
+ https://github.com/huggingface/transformers/blob/main/utils/update_metadata.py
26
+ """
27
+
28
+ import argparse
29
+ import os
30
+ import tempfile
31
+
32
+ import pandas as pd
33
+ from datasets import Dataset
34
+ from huggingface_hub import hf_hub_download, upload_folder
35
+
36
+ from diffusers.pipelines.auto_pipeline import (
37
+ AUTO_IMAGE2IMAGE_PIPELINES_MAPPING,
38
+ AUTO_INPAINT_PIPELINES_MAPPING,
39
+ AUTO_TEXT2IMAGE_PIPELINES_MAPPING,
40
+ )
41
+
42
+
43
+ PIPELINE_TAG_JSON = "pipeline_tags.json"
44
+
45
+
46
+ def get_supported_pipeline_table() -> dict:
47
+ """
48
+ Generates a dictionary containing the supported auto classes for each pipeline type,
49
+ using the content of the auto modules.
50
+ """
51
+ # All supported pipelines for automatic mapping.
52
+ all_supported_pipeline_classes = [
53
+ (class_name.__name__, "text-to-image", "AutoPipelineForText2Image")
54
+ for _, class_name in AUTO_TEXT2IMAGE_PIPELINES_MAPPING.items()
55
+ ]
56
+ all_supported_pipeline_classes += [
57
+ (class_name.__name__, "image-to-image", "AutoPipelineForImage2Image")
58
+ for _, class_name in AUTO_IMAGE2IMAGE_PIPELINES_MAPPING.items()
59
+ ]
60
+ all_supported_pipeline_classes += [
61
+ (class_name.__name__, "image-to-image", "AutoPipelineForInpainting")
62
+ for _, class_name in AUTO_INPAINT_PIPELINES_MAPPING.items()
63
+ ]
64
+ all_supported_pipeline_classes = list(set(all_supported_pipeline_classes))
65
+ all_supported_pipeline_classes.sort(key=lambda x: x[0])
66
+
67
+ data = {}
68
+ data["pipeline_class"] = [sample[0] for sample in all_supported_pipeline_classes]
69
+ data["pipeline_tag"] = [sample[1] for sample in all_supported_pipeline_classes]
70
+ data["auto_class"] = [sample[2] for sample in all_supported_pipeline_classes]
71
+
72
+ return data
73
+
74
+
75
+ def update_metadata(commit_sha: str):
76
+ """
77
+ Update the metadata for the Diffusers repo in `huggingface/diffusers-metadata`.
78
+
79
+ Args:
80
+ commit_sha (`str`): The commit SHA on Diffusers corresponding to this update.
81
+ """
82
+ pipelines_table = get_supported_pipeline_table()
83
+ pipelines_table = pd.DataFrame(pipelines_table)
84
+ pipelines_dataset = Dataset.from_pandas(pipelines_table)
85
+
86
+ hub_pipeline_tags_json = hf_hub_download(
87
+ repo_id="huggingface/diffusers-metadata",
88
+ filename=PIPELINE_TAG_JSON,
89
+ repo_type="dataset",
90
+ )
91
+ with open(hub_pipeline_tags_json) as f:
92
+ hub_pipeline_tags_json = f.read()
93
+
94
+ with tempfile.TemporaryDirectory() as tmp_dir:
95
+ pipelines_dataset.to_json(os.path.join(tmp_dir, PIPELINE_TAG_JSON))
96
+
97
+ with open(os.path.join(tmp_dir, PIPELINE_TAG_JSON)) as f:
98
+ pipeline_tags_json = f.read()
99
+
100
+ hub_pipeline_tags_equal = hub_pipeline_tags_json == pipeline_tags_json
101
+ if hub_pipeline_tags_equal:
102
+ print("No updates, not pushing the metadata files.")
103
+ return
104
+
105
+ if commit_sha is not None:
106
+ commit_message = (
107
+ f"Update with commit {commit_sha}\n\nSee: https://github.com/huggingface/diffusers/commit/{commit_sha}"
108
+ )
109
+ else:
110
+ commit_message = "Update"
111
+
112
+ upload_folder(
113
+ repo_id="huggingface/diffusers-metadata",
114
+ folder_path=tmp_dir,
115
+ repo_type="dataset",
116
+ commit_message=commit_message,
117
+ )
118
+
119
+
120
+ if __name__ == "__main__":
121
+ parser = argparse.ArgumentParser()
122
+ parser.add_argument("--commit_sha", default=None, type=str, help="The sha of the commit going with this update.")
123
+ args = parser.parse_args()
124
+
125
+ update_metadata(args.commit_sha)
pythonProject/upload.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import HfApi
2
+
3
+ # 参数配置
4
+ folder_path = "E:\Qwen-image" # 本地文件夹路径
5
+ # 必须包含:config.json, pytorch_model.bin, tokenizer_config.json 等
6
+ path_in_repo = "" # 上传到仓库根目录
7
+ repo_id = "xiaoanyu123/QwenTEST"
8
+
9
+ # 创建 HfApi 实例
10
+ api = HfApi()
11
+
12
+ # 执行大文件夹上传
13
+ try:
14
+ print("🚀 开始上传大型文件夹...")
15
+ api.upload_large_folder(
16
+ repo_id=repo_id,
17
+ folder_path=folder_path,
18
+ repo_type="model",
19
+ # 类型:model, dataset, space
20
+ ignore_patterns=[
21
+ ".cache", # 忽略所有 .cache 文件或文件夹
22
+ "__pycache__", # 忽略 Python 编译缓存
23
+ ".git", # 忽略 Git 版本控制文件
24
+ "pycharm/", # 忽略整个 pycharm 文件夹
25
+ "testResources/", # 忽略测试资源
26
+ "logs/", # 忽略日志文件夹
27
+ "*.log", # 忽略所有 .log 文件
28
+ "temp*", # 忽略 temp 开头的文件/文件夹
29
+ ]
30
+ )
31
+ print("✅ 大型文件夹上传成功!")
32
+ except Exception as e:
33
+ print(f"❌ 上传失败: {e}")
test/torch-2.4.0+cu118-cp39-cp39-win_amd64.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0da13570771e09f6d754196aa865a690222d683df07b62f20922a3f27546faf5
3
+ size 2692665290