receipt_indexer/code/libraries/process.py
Ethan Wellenreiter 527362ac0f Working on dataset making/preprocessing
Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
2023-11-14 16:20:07 -05:00

13 lines
293 B
Python

def relabel(datasetpath):
mappingpathwithindataset = "/baseimages/unaugmentednames/mapping.txt"
mappingfilepath = datasetpath+mappingpathwithindataset
mappingfile = open(mappingfilepath, 'r')
maptext = mappingfile.read()
mappingfile.close()
print(maptext)