MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / default_loader

Function default_loader

data/inat2018_loader.py:28–29  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

26
27
28def default_loader(path):
29 return Image.open(path).convert('RGB')
30
31def load_taxonomy(ann_data, tax_levels, classes):
32 # loads the taxonomy data and converts to ints

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected