Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix bug in 03.image_classification #290

Merged
merged 2 commits into from
Apr 25, 2017
Merged

Conversation

qingqing01
Copy link
Contributor

No description provided.

Copy link
Collaborator

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

im = np.array(im).astype(np.float32).flatten()
im = np.array(im).astype(np.float32)
im = im.transpose((2, 0, 1)) # CHW
im = im[(2, 1, 0),:,:] # BGR
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

解释下CHW和BGR是什么

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@luotao1 luotao1 merged commit a4a1557 into PaddlePaddle:develop Apr 25, 2017
@qingqing01 qingqing01 deleted the image branch May 10, 2017 11:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants