Commit bbd2f70507686dc2166854205b4caa58abf0dc91
1 parent
1b14c343
Exists in
master
and in
1 other branch
cropping.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
mdata/ILSVRC.py
@@ -450,7 +450,7 @@ class DataILSVRC(DataDumperBase): | @@ -450,7 +450,7 @@ class DataILSVRC(DataDumperBase): | ||
450 | for line in tsvfile: | 450 | for line in tsvfile: |
451 | hash = line[0] | 451 | hash = line[0] |
452 | tag = line[-1] | 452 | tag = line[-1] |
453 | - image = os.path.join(self.data_dir, hash[:3], hash[3:] + '.jpg') | 453 | + image = os.path.join(self.img_dir, hash[:3], hash[3:] + '.jpg') |
454 | if image: | 454 | if image: |
455 | im = Jpeg(image, key=sample_key) | 455 | im = Jpeg(image, key=sample_key) |
456 | dict_dataset[hash] = (tag, im.getCoefBlocks('Y')) | 456 | dict_dataset[hash] = (tag, im.getCoefBlocks('Y')) |