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

Method dummy_sample

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

Source from the content-addressed store, hash-verified

25class ImageProcessorTest(unittest.TestCase):
26 @property
27 def dummy_sample(self):
28 batch_size = 1
29 num_channels = 3
30 height = 8
31 width = 8
32
33 sample = torch.rand((batch_size, num_channels, height, width))
34
35 return sample
36
37 @property
38 def dummy_mask(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected