{"action":"created","issue":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/8938","repository_url":"https://api.github.com/repos/PaddlePaddle/Paddle","labels_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/8938/labels{/name}","comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/8938/comments","events_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/8938/events","html_url":"https://github.com/PaddlePaddle/Paddle/issues/8938","id":303832743,"number":8938,"title":"Fluid版本的图像分类如何做预测","user":{"login":"yeyupiaoling","id":26297768,"avatar_url":"https://avatars1.githubusercontent.com/u/26297768?v=4","gravatar_id":"","url":"https://api.github.com/users/yeyupiaoling","html_url":"https://github.com/yeyupiaoling","followers_url":"https://api.github.com/users/yeyupiaoling/followers","following_url":"https://api.github.com/users/yeyupiaoling/following{/other_user}","gists_url":"https://api.github.com/users/yeyupiaoling/gists{/gist_id}","starred_url":"https://api.github.com/users/yeyupiaoling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeyupiaoling/subscriptions","organizations_url":"https://api.github.com/users/yeyupiaoling/orgs","repos_url":"https://api.github.com/users/yeyupiaoling/repos","events_url":"https://api.github.com/users/yeyupiaoling/events{/privacy}","received_events_url":"https://api.github.com/users/yeyupiaoling/received_events","type":"User","site_admin":false},"labels":[{"id":651040732,"url":"https://api.github.com/repos/PaddlePaddle/Paddle/labels/User","name":"User","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-09T12:57:11Z","updated_at":"2018-03-09T13:32:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"在官方提供的例子中https://github.com/PaddlePaddle/models/blob/df8060e7022fcac12fd33a8adf098c0663d8152d/fluid/image_classification/mobilenet.py 没有介绍到如果使用训练好的模型预测，能讲一下吗？"},"comment":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/comments/371812721","html_url":"https://github.com/PaddlePaddle/Paddle/issues/8938#issuecomment-371812721","issue_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/8938","id":371812721,"user":{"login":"yeyupiaoling","id":26297768,"avatar_url":"https://avatars1.githubusercontent.com/u/26297768?v=4","gravatar_id":"","url":"https://api.github.com/users/yeyupiaoling","html_url":"https://github.com/yeyupiaoling","followers_url":"https://api.github.com/users/yeyupiaoling/followers","following_url":"https://api.github.com/users/yeyupiaoling/following{/other_user}","gists_url":"https://api.github.com/users/yeyupiaoling/gists{/gist_id}","starred_url":"https://api.github.com/users/yeyupiaoling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeyupiaoling/subscriptions","organizations_url":"https://api.github.com/users/yeyupiaoling/orgs","repos_url":"https://api.github.com/users/yeyupiaoling/repos","events_url":"https://api.github.com/users/yeyupiaoling/events{/privacy}","received_events_url":"https://api.github.com/users/yeyupiaoling/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T13:32:34Z","updated_at":"2018-03-09T13:32:34Z","author_association":"CONTRIBUTOR","body":"@peterzhang2029 \r\n如果要换成真实的数据，只要把\r\nhttps://github.com/PaddlePaddle/Paddle/blob/ccc5418841f263dba9d89add8ac0cd3baf55bc4a/python/paddle/fluid/tests/book/test_image_classification.py#L219-L220\r\n\r\n换成\r\nhttps://github.com/PaddlePaddle/models/blob/df8060e7022fcac12fd33a8adf098c0663d8152d/image_classification/infer.py#L71-L72\r\n```python\r\n    test_data = [(paddle.image.load_and_transform(image_file, 256, 224, False)\r\n                  .flatten().astype('float32'), ) for image_file in file_list]\r\n```\r\n是吗？"}}
{"actor":{"display_login":"yeyupiaoling"}}