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
28e8d1f6
Unverified
Commit
28e8d1f6
authored
Oct 18, 2023
by
Dhruv Nair
Committed by
GitHub
Oct 18, 2023
Browse files
Fix pipe fetcher for slow tests (#5424)
* fix pipe fetcher * filter out community pipelines
parent
98a0712d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
utils/fetch_torch_cuda_pipeline_test_matrix.py
utils/fetch_torch_cuda_pipeline_test_matrix.py
+6
-2
No files found.
utils/fetch_torch_cuda_pipeline_test_matrix.py
View file @
28e8d1f6
...
@@ -34,8 +34,11 @@ def filter_pipelines(usage_dict, usage_cutoff=10000):
...
@@ -34,8 +34,11 @@ def filter_pipelines(usage_dict, usage_cutoff=10000):
if
usage
<
usage_cutoff
:
if
usage
<
usage_cutoff
:
continue
continue
if
"Pipeline"
in
diffusers_object
:
is_diffusers_pipeline
=
hasattr
(
diffusers
.
pipelines
,
diffusers_object
)
output
.
append
(
diffusers_object
)
if
not
is_diffusers_pipeline
:
continue
output
.
append
(
diffusers_object
)
return
output
return
output
...
@@ -71,6 +74,7 @@ def fetch_pipeline_modules_to_test():
...
@@ -71,6 +74,7 @@ def fetch_pipeline_modules_to_test():
test_modules
=
[]
test_modules
=
[]
for
pipeline_name
in
pipeline_objects
:
for
pipeline_name
in
pipeline_objects
:
module
=
getattr
(
diffusers
,
pipeline_name
)
module
=
getattr
(
diffusers
,
pipeline_name
)
test_module
=
module
.
__module__
.
split
(
"."
)[
-
2
].
strip
()
test_module
=
module
.
__module__
.
split
(
"."
)[
-
2
].
strip
()
test_modules
.
append
(
test_module
)
test_modules
.
append
(
test_module
)
...
...
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