MCPcopy Create free account
hub / github.com/ali-vilab/ACE_plus / __init__

Method __init__

inference/utils.py:25–32  ·  view source on GitHub ↗
(self, max_aspect_ratio=4, d=16, max_seq_len=2048)

Source from the content-addressed store, hash-verified

23
24class ACEPlusImageProcessor():
25 def __init__(self, max_aspect_ratio=4, d=16, max_seq_len=2048):
26 self.max_aspect_ratio = max_aspect_ratio
27 self.d = d
28 self.max_seq_len = max_seq_len
29 self.transforms = T.Compose([
30 T.ToTensor(),
31 T.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
32 ])
33
34 def image_check(self, image):
35 if image is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected