Skip to content

Commit

Permalink
Main fix classification (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcohol authored Dec 10, 2024
1 parent 57a6028 commit 638250d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def preprocess_image(image_path, target_size=(256, 256), crop_size=(224, 224)):
img_array = np.array(img).astype("uint8")
# Transpose to (1, C, H, W)
# img_array = np.transpose(img_array, (2, 0, 1))
# img_array = np.expand_dims(img_array, axis=0) # Add batch dimension
img_array = np.expand_dims(img_array, axis=0) # Add batch dimension
return img_array


Expand Down

0 comments on commit 638250d

Please sign in to comment.