{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai/issues/25","repository_url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai","labels_url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai/issues/25/comments","events_url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai/issues/25/events","html_url":"https://github.com/Microsoft/vs-tools-for-ai/issues/25","id":342994675,"node_id":"MDU6SXNzdWUzNDI5OTQ2NzU=","number":25,"title":"Example of passing an image to Tensorflow model?","user":{"login":"bzburr","id":22606272,"node_id":"MDQ6VXNlcjIyNjA2Mjcy","avatar_url":"https://avatars3.githubusercontent.com/u/22606272?v=4","gravatar_id":"","url":"https://api.github.com/users/bzburr","html_url":"https://github.com/bzburr","followers_url":"https://api.github.com/users/bzburr/followers","following_url":"https://api.github.com/users/bzburr/following{/other_user}","gists_url":"https://api.github.com/users/bzburr/gists{/gist_id}","starred_url":"https://api.github.com/users/bzburr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzburr/subscriptions","organizations_url":"https://api.github.com/users/bzburr/orgs","repos_url":"https://api.github.com/users/bzburr/repos","events_url":"https://api.github.com/users/bzburr/events{/privacy}","received_events_url":"https://api.github.com/users/bzburr/received_events","type":"User","site_admin":false},"labels":[{"id":699296000,"node_id":"MDU6TGFiZWw2OTkyOTYwMDA=","url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-20T06:59:28Z","updated_at":"2018-07-29T07:47:07Z","closed_at":null,"author_association":"NONE","body":"HI there\r\n\r\nare there any c# examples of how to correctly pass a image across to a tensorflow model in ai tools after the Model project has been made?\r\n\r\ncheers"},"comment":{"url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai/issues/comments/408658699","html_url":"https://github.com/Microsoft/vs-tools-for-ai/issues/25#issuecomment-408658699","issue_url":"https://api.github.com/repos/Microsoft/vs-tools-for-ai/issues/25","id":408658699,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODY1ODY5OQ==","user":{"login":"shishaochen","id":17514649,"node_id":"MDQ6VXNlcjE3NTE0NjQ5","avatar_url":"https://avatars0.githubusercontent.com/u/17514649?v=4","gravatar_id":"","url":"https://api.github.com/users/shishaochen","html_url":"https://github.com/shishaochen","followers_url":"https://api.github.com/users/shishaochen/followers","following_url":"https://api.github.com/users/shishaochen/following{/other_user}","gists_url":"https://api.github.com/users/shishaochen/gists{/gist_id}","starred_url":"https://api.github.com/users/shishaochen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shishaochen/subscriptions","organizations_url":"https://api.github.com/users/shishaochen/orgs","repos_url":"https://api.github.com/users/shishaochen/repos","events_url":"https://api.github.com/users/shishaochen/events{/privacy}","received_events_url":"https://api.github.com/users/shishaochen/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T07:47:07Z","updated_at":"2018-07-29T07:47:07Z","author_association":"CONTRIBUTOR","body":"@bzburr I find your error!!!\r\nAs the generated C# file told, the shape of the input tensor should be (299, 299, 3).\r\n![image](https://user-images.githubusercontent.com/17514649/43364048-0fb4de40-9345-11e8-80d7-2527ac851a4e.png)\r\nBut in your code, you only provided an array with size (299, 299) which led to the Tensor construction error. You can find the error from the VS debug window.\r\n![image](https://user-images.githubusercontent.com/17514649/43364110-83864d62-9346-11e8-806e-aeb232f2486a.png)\r\nThe largest BUG of your program is **you simply copying the image processing code I shared without any change**. My shared sample code works for MNIST dataset but your scenario.\r\nPlease parse your image with correct processing steps according to your training code."}}
{"actor":{"display_login":"shishaochen"}}