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
fengzch-das
nunchaku
Commits
1ea67370
Commit
1ea67370
authored
Apr 16, 2025
by
muyangli
Browse files
update tests
parent
007982e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tests/flux/test_flux_dev.py
tests/flux/test_flux_dev.py
+1
-1
tests/flux/test_flux_tools.py
tests/flux/test_flux_tools.py
+1
-1
tests/flux/utils.py
tests/flux/utils.py
+1
-1
No files found.
tests/flux/test_flux_dev.py
View file @
1ea67370
...
...
@@ -9,7 +9,7 @@ from .utils import run_test
"height,width,num_inference_steps,attention_impl,cpu_offload,expected_lpips"
,
[
(
1024
,
1024
,
50
,
"flashattn2"
,
False
,
0.139
),
(
2048
,
512
,
25
,
"nunchaku-fp16"
,
False
,
0.1
4
8
),
(
2048
,
512
,
25
,
"nunchaku-fp16"
,
False
,
0.1
6
8
),
],
)
def
test_flux_dev
(
...
...
tests/flux/test_flux_tools.py
View file @
1ea67370
...
...
@@ -140,5 +140,5 @@ def test_flux_dev_redux():
attention_impl
=
"nunchaku-fp16"
,
cpu_offload
=
False
,
cache_threshold
=
0
,
expected_lpips
=
(
0.1
43
if
get_precision
()
==
"int4"
else
0.198
),
expected_lpips
=
(
0.1
62
if
get_precision
()
==
"int4"
else
0.198
),
)
tests/flux/utils.py
View file @
1ea67370
...
...
@@ -180,7 +180,7 @@ def run_test(
for
lora_name
,
lora_strength
in
zip
(
lora_names
,
lora_strengths
):
folder_name
+=
f
"-
{
lora_name
}
_
{
lora_strength
}
"
ref_root
=
os
.
path
.
join
(
"test_results"
,
"ref"
)
ref_root
=
os
.
environ
.
get
(
"NUNCHAKU_TEST_CACHE_ROOT"
,
os
.
path
.
join
(
"test_results"
,
"ref"
)
)
save_dir_16bit
=
os
.
path
.
join
(
ref_root
,
dtype_str
,
model_name
,
folder_name
)
if
task
in
[
"t2i"
,
"redux"
]:
...
...
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