{"action":"created","issue":{"url":"https://api.github.com/repos/matansel/pix2vertex/issues/2","repository_url":"https://api.github.com/repos/matansel/pix2vertex","labels_url":"https://api.github.com/repos/matansel/pix2vertex/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/matansel/pix2vertex/issues/2/comments","events_url":"https://api.github.com/repos/matansel/pix2vertex/issues/2/events","html_url":"https://github.com/matansel/pix2vertex/issues/2","id":251579647,"number":2,"title":"Problem about 'postprocess.p' output","user":{"login":"Fanziapril","id":21120421,"avatar_url":"https://avatars3.githubusercontent.com/u/21120421?v=4","gravatar_id":"","url":"https://api.github.com/users/Fanziapril","html_url":"https://github.com/Fanziapril","followers_url":"https://api.github.com/users/Fanziapril/followers","following_url":"https://api.github.com/users/Fanziapril/following{/other_user}","gists_url":"https://api.github.com/users/Fanziapril/gists{/gist_id}","starred_url":"https://api.github.com/users/Fanziapril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fanziapril/subscriptions","organizations_url":"https://api.github.com/users/Fanziapril/orgs","repos_url":"https://api.github.com/users/Fanziapril/repos","events_url":"https://api.github.com/users/Fanziapril/events{/privacy}","received_events_url":"https://api.github.com/users/Fanziapril/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-21T08:06:12Z","updated_at":"2017-08-22T06:21:22Z","closed_at":null,"body":"The code could run successfully, but the output is random. The output of the deep network is good but when doing 'Affine Align', the alignment results between the depth and 3D template are random. The results are different when running the code several times. Sometimes only partial face is reconstructed. I think this may be the depth cannot align well with the template. The 'postprocess.p' is protected so I cannot figure out the problem."},"comment":{"url":"https://api.github.com/repos/matansel/pix2vertex/issues/comments/323930635","html_url":"https://github.com/matansel/pix2vertex/issues/2#issuecomment-323930635","issue_url":"https://api.github.com/repos/matansel/pix2vertex/issues/2","id":323930635,"user":{"login":"Fanziapril","id":21120421,"avatar_url":"https://avatars3.githubusercontent.com/u/21120421?v=4","gravatar_id":"","url":"https://api.github.com/users/Fanziapril","html_url":"https://github.com/Fanziapril","followers_url":"https://api.github.com/users/Fanziapril/followers","following_url":"https://api.github.com/users/Fanziapril/following{/other_user}","gists_url":"https://api.github.com/users/Fanziapril/gists{/gist_id}","starred_url":"https://api.github.com/users/Fanziapril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fanziapril/subscriptions","organizations_url":"https://api.github.com/users/Fanziapril/orgs","repos_url":"https://api.github.com/users/Fanziapril/repos","events_url":"https://api.github.com/users/Fanziapril/events{/privacy}","received_events_url":"https://api.github.com/users/Fanziapril/received_events","type":"User","site_admin":false},"created_at":"2017-08-22T06:21:22Z","updated_at":"2017-08-22T06:21:22Z","body":"Thanks for your quick reply. I am using the exact same face detector(vision.CascadeObjectDetector and all the property is default) as you are. But I am using MATLAB 2017a,  maybe the face detection algorithms are different between different MATLAB versions.\r\n\r\nI manually cropped the bounding box and try to make it looks like the image showed in your paper(Fig 10).\r\n`FaceDetect = vision.CascadeObjectDetector; `\r\n`BB = step(FaceDetect,img);`\r\n`scale = 1.1;`\r\n`BB(1,1) = BB(1,1) - 0.5*(scale-1)*BB(1,3);`\r\n`%BB(1,2) = BB(1,2) - 0.5*(scale-1)*BB(1,4);`\r\n`BB(1,3) = scale*BB(1,3);`\r\n`BB(1,4) = scale*BB(1,4);`\r\n`imsz = size(img);`\r\nThis solved the problem. \r\nHowever, there is another problem: I directly used the cropped image, but still get different final results.\r\nThe cropped image is:\r\n![crop](https://user-images.githubusercontent.com/21120421/29551161-11566146-8744-11e7-875a-b962b578c2fa.png)\r\nfirst running:\r\n![tmp6](https://user-images.githubusercontent.com/21120421/29551311-b45426c6-8744-11e7-9be6-9581e48f0c3b.jpg)![tmp5](https://user-images.githubusercontent.com/21120421/29551313-b6801202-8744-11e7-9d60-0213b0449899.jpg)\r\n\r\nsecond running:\r\n![tmp7](https://user-images.githubusercontent.com/21120421/29551322-c1478210-8744-11e7-81b4-b5fcc3704c94.jpg)![tmp8](https://user-images.githubusercontent.com/21120421/29551323-c21d64fc-8744-11e7-81b2-1b2a7843f92e.jpg)\r\n\r\nI think the bounding box should not be the reason. Is there any possible that the output of deep network or postprocess are different when running the code for several times?\r\n"}}
{"actor":{"display_login":"Fanziapril"}}