MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / load_image

Function load_image

dataset_loaders/seven_scenes.py:128–137  ·  view source on GitHub ↗
(filename, loader=default_loader)

Source from the content-addressed store, hash-verified

126
127from torchvision.datasets.folder import default_loader
128def load_image(filename, loader=default_loader):
129 try:
130 img = loader(filename)
131 except IOError as e:
132 print('Could not load image {:s}, IOError: {:s}'.format(filename, e))
133 return None
134 except:
135 print('Could not load image {:s}, unexpected error'.format(filename))
136 return None
137 return img
138
139def load_depth_image(filename):
140 try:

Callers 2

__init__Method · 0.70
__getitem__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected