Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vladmandic/sdnext
/ sort
Method
sort
scripts/pulid/pulid_sampling.py:95–96 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
93
94
@staticmethod
95
def
sort(a, b):
96
return
(a, b, 1)
if
a < b
else
(b, a, -1)
97
98
def
__call__(self, t0, t1):
99
t0, t1, sign = self.sort(t0, t1)
Callers
15
__init__
Method · 0.95
__call__
Method · 0.95
image-grid.py
File · 0.45
main
Function · 0.45
fetch_danbooru
Function · 0.45
fetch_e621
Function · 0.45
fetch_gelbooru
Function · 0.45
fetch_sankaku
Function · 0.45
fetch_idol
Function · 0.45
test_pipelines
Function · 0.45
mask_by_random_topk
Function · 0.45
apply_order
Function · 0.45
Calls
no outgoing calls
Tested by
1
test_pipelines
Function · 0.36