MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / dummy_mask

Method dummy_mask

tests/others/test_image_processor.py:38–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36
37 @property
38 def dummy_mask(self):
39 batch_size = 1
40 num_channels = 1
41 height = 8
42 width = 8
43
44 sample = torch.rand((batch_size, num_channels, height, width))
45
46 return sample
47
48 def to_np(self, image):
49 if isinstance(image[0], PIL.Image.Image):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected