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
57bac67d
Commit
57bac67d
authored
Apr 12, 2025
by
muyangli
Browse files
update
parent
0952197d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/utils.py
tests/utils.py
+1
-1
No files found.
tests/utils.py
View file @
57bac67d
...
...
@@ -59,7 +59,7 @@ class MultiImageDataset(data.Dataset):
def
compute_lpips
(
ref_dirpath
:
str
,
gen_dirpath
:
str
,
batch_size
:
int
=
4
,
num_workers
:
int
=
8
,
device
:
str
|
torch
.
device
=
"cuda"
ref_dirpath
:
str
,
gen_dirpath
:
str
,
batch_size
:
int
=
4
,
num_workers
:
int
=
1
,
device
:
str
|
torch
.
device
=
"cuda"
)
->
float
:
os
.
environ
[
"TOKENIZERS_PARALLELISM"
]
=
"false"
metric
=
LearnedPerceptualImagePatchSimilarity
(
normalize
=
True
).
to
(
device
)
...
...
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