Skip to content

Commit

Permalink
Fixed preprocess_imagenet_using_opencv for a hierarchical dataset. No…
Browse files Browse the repository at this point in the history
…w preprocessed file names are properly sorted in the image_list.txt.
  • Loading branch information
mosalov committed Jun 4, 2024
1 parent 4b8a853 commit b688f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preprocess_imagenet_using_opencv/code_axs.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def preprocess_files(selected_filenames, images_directory, destination_dir, crop

output_filenames.append(output_filename)

return output_filenames
return sorted(output_filenames)

def quantized_to_int8(image, scale, offset):
quant_image = (image/scale + offset).astype(np.float32)
Expand Down

0 comments on commit b688f2d

Please sign in to comment.