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
chenpangpang
ComfyUI
Commits
cdff0810
Commit
cdff0810
authored
Dec 07, 2023
by
comfyanonymous
Browse files
Fix hypertile.
parent
efb704c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
comfy_extras/nodes_hypertile.py
comfy_extras/nodes_hypertile.py
+4
-1
No files found.
comfy_extras/nodes_hypertile.py
View file @
cdff0810
...
...
@@ -13,7 +13,10 @@ def random_divisor(value: int, min_value: int, /, max_options: int = 1) -> int:
ns
=
[
value
//
i
for
i
in
divisors
[:
max_options
]]
# has at least 1 element
idx
=
randint
(
low
=
0
,
high
=
len
(
ns
)
-
1
,
size
=
(
1
,)).
item
()
if
len
(
ns
)
-
1
>
0
:
idx
=
randint
(
low
=
0
,
high
=
len
(
ns
)
-
1
,
size
=
(
1
,)).
item
()
else
:
idx
=
0
return
ns
[
idx
]
...
...
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