Skip to content

Commit

Permalink
Fix relay.testing.darknet convert_image (#7667)
Browse files Browse the repository at this point in the history
  • Loading branch information
apivovarov committed Mar 16, 2021
1 parent b8b63cd commit e697f03
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 e697f03

Please sign in to comment.