Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
f57b27d2
Unverified
Commit
f57b27d2
authored
Jul 23, 2024
by
Dhruv Nair
Committed by
GitHub
Jul 23, 2024
Browse files
Update pipeline test fetcher (#8931)
update
parent
c5fdf33a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
utils/fetch_torch_cuda_pipeline_test_matrix.py
utils/fetch_torch_cuda_pipeline_test_matrix.py
+2
-3
No files found.
utils/fetch_torch_cuda_pipeline_test_matrix.py
View file @
f57b27d2
...
@@ -4,7 +4,7 @@ import os
...
@@ -4,7 +4,7 @@ import os
from
collections
import
defaultdict
from
collections
import
defaultdict
from
pathlib
import
Path
from
pathlib
import
Path
from
huggingface_hub
import
HfApi
,
ModelFilter
from
huggingface_hub
import
HfApi
import
diffusers
import
diffusers
...
@@ -27,7 +27,6 @@ PIPELINE_USAGE_CUTOFF = int(os.getenv("PIPELINE_USAGE_CUTOFF", 50000))
...
@@ -27,7 +27,6 @@ PIPELINE_USAGE_CUTOFF = int(os.getenv("PIPELINE_USAGE_CUTOFF", 50000))
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
api
=
HfApi
()
api
=
HfApi
()
filter
=
ModelFilter
(
library
=
"diffusers"
)
def
filter_pipelines
(
usage_dict
,
usage_cutoff
=
10000
):
def
filter_pipelines
(
usage_dict
,
usage_cutoff
=
10000
):
...
@@ -46,7 +45,7 @@ def filter_pipelines(usage_dict, usage_cutoff=10000):
...
@@ -46,7 +45,7 @@ def filter_pipelines(usage_dict, usage_cutoff=10000):
def
fetch_pipeline_objects
():
def
fetch_pipeline_objects
():
models
=
api
.
list_models
(
filter
=
filter
)
models
=
api
.
list_models
(
library
=
"diffusers"
)
downloads
=
defaultdict
(
int
)
downloads
=
defaultdict
(
int
)
for
model
in
models
:
for
model
in
models
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment