MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / get_ar

Function get_ar

datasets/aspect.py:20–22  ·  view source on GitHub ↗
(ratio)

Source from the content-addressed store, hash-verified

18
19
20def get_ar(ratio):
21 h, w = ratio.split(':')
22 return int(h) / int(w)
23
24
25# H:W

Callers 1

aspect.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected