{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2617","repository_url":"https://api.github.com/repos/deeplearning4j/nd4j","labels_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2617/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2617/comments","events_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2617/events","html_url":"https://github.com/deeplearning4j/nd4j/issues/2617","id":295888272,"number":2617,"title":"Yolo very slow in Android","user":{"login":"Ngosti2000","id":290731,"avatar_url":"https://avatars1.githubusercontent.com/u/290731?v=4","gravatar_id":"","url":"https://api.github.com/users/Ngosti2000","html_url":"https://github.com/Ngosti2000","followers_url":"https://api.github.com/users/Ngosti2000/followers","following_url":"https://api.github.com/users/Ngosti2000/following{/other_user}","gists_url":"https://api.github.com/users/Ngosti2000/gists{/gist_id}","starred_url":"https://api.github.com/users/Ngosti2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ngosti2000/subscriptions","organizations_url":"https://api.github.com/users/Ngosti2000/orgs","repos_url":"https://api.github.com/users/Ngosti2000/repos","events_url":"https://api.github.com/users/Ngosti2000/events{/privacy}","received_events_url":"https://api.github.com/users/Ngosti2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-09T14:27:21Z","updated_at":"2018-02-25T02:02:11Z","closed_at":null,"author_association":"NONE","body":"Yolo2 outputSingle is very slow in Android to tunes of 8secs\r\n\r\nMy Application capturing Frames from the Android Camera and feeding them to TinyYoloModel... The response in terms of outputting the predictions is very slow around 8secs for a single prediction.\r\n\r\nThe expected behavior is to have the predictions below a second for the frames being fed into the YoloOutput Model\r\n\r\n#### Version Information\r\n\r\nPlease indicate relevant versions, including, if relevant:\r\n\r\n* Deeplearning4j **0.9.2-SNAPSHOT**\r\n* platform information (OS, etc) - **Android Mashmellow ,\r\nAndroid 6.0.1 (Marshmallow),Chipset | Mediatek MT6755 Helio P10\r\nCPU | Octa-core (4x2.0 GHz Cortex-A53 & 4x1.0 GHz Cortex-A53)**\r\n\r\nBelow is the Code \r\n ```\r\npublic static List<DetectedObject> loadImage(Bitmap f) throws IOException {\r\n        NativeImageLoader ni=new NativeImageLoader(416,416,3);      \r\n        INDArray in= ni.asMatrix(f);\r\n        if(yoloModel==null)return null;\r\n        ImagePreProcessingScaler ips = new ImagePreProcessingScaler(0, 1);\r\n        ips.transform(in);\r\n        Yolo2OutputLayer outputLayer = (Yolo2OutputLayer) yoloModel.getOutputLayer(0);\r\n        long start=System.currentTimeMillis();\r\n        System.out.println(\"Start.....\"+start);\r\n        INDArray output = yoloModel.outputSingle(in);\r\n        long end =System.currentTimeMillis();\r\n        System.out.println(\"End.....\"+end);\r\n        System.out.println((end-start)/1000); //output is around 8 secs        \r\n        List<DetectedObject> predictedObjects = outputLayer.getPredictedObjects(output, 0.6f);\r\n        System.out.println((end-start)/1000);\r\n\r\n\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nThe Profiler information is captured in the image below\r\n![cuda](https://user-images.githubusercontent.com/290731/36031883-4a92512c-0dbd-11e8-8b99-43c59d8c39c3.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/comments/368276589","html_url":"https://github.com/deeplearning4j/nd4j/issues/2617#issuecomment-368276589","issue_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2617","id":368276589,"user":{"login":"saudet","id":3328023,"avatar_url":"https://avatars1.githubusercontent.com/u/3328023?v=4","gravatar_id":"","url":"https://api.github.com/users/saudet","html_url":"https://github.com/saudet","followers_url":"https://api.github.com/users/saudet/followers","following_url":"https://api.github.com/users/saudet/following{/other_user}","gists_url":"https://api.github.com/users/saudet/gists{/gist_id}","starred_url":"https://api.github.com/users/saudet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saudet/subscriptions","organizations_url":"https://api.github.com/users/saudet/orgs","repos_url":"https://api.github.com/users/saudet/repos","events_url":"https://api.github.com/users/saudet/events{/privacy}","received_events_url":"https://api.github.com/users/saudet/received_events","type":"User","site_admin":false},"created_at":"2018-02-25T02:02:11Z","updated_at":"2018-02-25T02:02:11Z","author_association":"OWNER","body":"64-bit might be fix this? Try them out (the `android-arm64` and `android-x86_64` platforms)"}}
{"actor":{"display_login":"saudet"}}