Skip to content

Commit

Permalink
Fix relay.testing.darknet convert_image (apache#7667)
Browse files Browse the repository at this point in the history
  • Loading branch information
apivovarov authored and trevor-m committed May 11, 2021
1 parent 060105f commit a698edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/testing/darknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def convert_image(image):
"""Convert the image with numpy."""
imagex = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
imagex = np.array(image)
imagex = np.array(imagex)
imagex = imagex.transpose((2, 0, 1))
imagex = np.divide(imagex, 255.0)
imagex = np.flip(imagex, 0)
Expand Down

0 comments on commit a698edb

Please sign in to comment.