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
ad8097b9
Unverified
Commit
ad8097b9
authored
Apr 04, 2025
by
Muyang Li
Committed by
GitHub
Apr 04, 2025
Browse files
Release v0.2.0
Ready to release v0.2.0
parents
804a6d30
998192ca
Changes
142
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tests/utils.py
tests/utils.py
+1
-1
third_party/Block-Sparse-Attention
third_party/Block-Sparse-Attention
+1
-1
No files found.
tests/utils.py
View file @
ad8097b9
...
@@ -59,7 +59,7 @@ class MultiImageDataset(data.Dataset):
...
@@ -59,7 +59,7 @@ class MultiImageDataset(data.Dataset):
def
compute_lpips
(
def
compute_lpips
(
ref_dirpath
:
str
,
gen_dirpath
:
str
,
batch_size
:
int
=
6
4
,
num_workers
:
int
=
8
,
device
:
str
|
torch
.
device
=
"cuda"
ref_dirpath
:
str
,
gen_dirpath
:
str
,
batch_size
:
int
=
4
,
num_workers
:
int
=
8
,
device
:
str
|
torch
.
device
=
"cuda"
)
->
float
:
)
->
float
:
os
.
environ
[
"TOKENIZERS_PARALLELISM"
]
=
"false"
os
.
environ
[
"TOKENIZERS_PARALLELISM"
]
=
"false"
metric
=
LearnedPerceptualImagePatchSimilarity
(
normalize
=
True
).
to
(
device
)
metric
=
LearnedPerceptualImagePatchSimilarity
(
normalize
=
True
).
to
(
device
)
...
...
Block-Sparse-Attention
@
99511c34
Compare
0d23f715
...
99511c34
Subproject commit
0d23f715690c5171fd93679de8afd149376db167
Subproject commit
99511c34554a13ffaa81321834faf66389ffcb30
Prev
1
…
4
5
6
7
8
Next
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