Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/ViMoGen
/ get_aspect_ratios_dict
Function
get_aspect_ratios_dict
datasets/aspect.py:15–17 ·
view source on GitHub ↗
(ars, ts=360 * 640)
Source
from the content-addressed store, hash-verified
13
14
15
def
get_aspect_ratios_dict(ars, ts=360 * 640):
16
est = {f
'{a:.2f}'
: get_h_w(a, ts)
for
a in ars}
17
return
est
18
19
20
def
get_ar(ratio):
Callers
nothing calls this directly
Calls
1
get_h_w
Function · 0.85
Tested by
no test coverage detected