MCPcopy Create free account
hub / github.com/NVlabs/SegFormer / __init__

Method __init__

mmseg/datasets/pipelines/loading.py:31–40  ·  view source on GitHub ↗
(self,
                 to_float32=False,
                 color_type='color',
                 file_client_args=dict(backend='disk'),
                 imdecode_backend='cv2')

Source from the content-addressed store, hash-verified

29 """
30
31 def __init__(self,
32 to_float32=False,
33 color_type='color',
34 file_client_args=dict(backend='disk'),
35 imdecode_backend='cv2'):
36 self.to_float32 = to_float32
37 self.color_type = color_type
38 self.file_client_args = file_client_args.copy()
39 self.file_client = None
40 self.imdecode_backend = imdecode_backend
41
42 def __call__(self, results):
43 """Call functions to load image and get image meta information.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected