Thanks for the reply Aditya,<br>comments in-lined,<br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>If you wish to use GPGPU, OpenCL is the right choice over CUDA. CUDA's API is not only proprietary, it also is specifically for nVidia hardware. OpenCL is good in this sense. If you have an nVidia card, it seems that OpenCL will internally use CUDA, therefore OpenCL will work on all users' computers.</div>




</blockquote><div> </div><div> That is my opinion too.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>However, I'm not sure, but there seems to be a small problem with adoption : <a href="http://www.khronos.org/opencl/adopters/" target="_blank">http://www.khronos.org/opencl/adopters/</a></div><div>There are some weird conditions regarding publishable usage that I'm not entirely sure about - it seems that you must gain some sort of approval and pass some tests before you are allowed to say that you used OpenCL in digiKam. If one doesn't want to publish his/her code, but keep it for personal/closed usage, then you don't have to pay royalty.<br>





Please correct me if I'm wrong, since this seems free as in speech/usage, but not free as in beer - there are some royalty issues if you don't pass the conformance tests.</div></blockquote><div> </div><div> Actually, there is a small interpretation error, the conditions regarding publishable usage is only for the adopters (ie. NVIDIA or ATI etc <a href="http://www.khronos.org/members/conformant/" target="_blank">http://www.khronos.org/members/conformant/</a> ) who come up with OpenCL compliant drivers / API implementation. As mentioned in the link "<a href="http://www.khronos.org/adopters" target="_blank">main adopters page</a>" we as implementers should not have any problems. (Quoting from the site:<a href="http://www.khronos.org/adopters" target="_blank">http://www.khronos.org/adopters</a>)<br>



<br>"<i><b>  Implementers</b> - for no      cost or license fees 
you may:</i>
<ul><li><i>Create and deliver a product using the publicly released 
specifications and technologies</i></li><li><i>But you may *not* claim that it is "compliant" unless they enter 
and pass conformance testing</i></li><li><i>And if the product is a software or hardware engine, you may not 
advertise it using the Khronos API technology logos or trademarks</i>    "<br></li></ul>Regarding the second and the third point , that's ok from an OpenSource project perspective . As it provides us, both the freedoms<br>
of free speech & free beer , but asks us not to publicize it :) (without conformance testing).<br>


 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div></div><div>As a side note - I had a talk with Alex about using EBGM a few days ago, and we decided not to use it for the moment. We don't have anything against the algorithm, it's just that if only I did it, there won't be enough time to implement all the </div>



</blockquote><div> </div><div>Actually, freely available implementations of EBGM are available (as i had pointed out , in a reply to Marcel's mail sometime back the implementations can be found at  <a href="http://malic.sourceforge.net/" target="_blank">http://malic.sourceforge.net/</a>
 and also at <a href="http://www.cs.colostate.edu/evalfacerec/algorithms5.html" target="_blank">http://www.cs.colostate.edu/evalfacerec/algorithms5.html</a> ). Also i would like to interact with you'll on IRC,on which IRC do you'll (Alex and you) usually meetup.<br>


<br>IMHO , there would be sufficient time with respect to create the tagging widget since its quite easy 
to write plugins for <br>digikam.Also the EBGM algorithm will not take more than about a month as the free implementations already<br>exist. I would have to use the OpenCL API to modify the necessary portions of the already existing code.<br>



<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>algorithms and also complete the tagging part within the GSoC period. We definitely want to have eigenface and fisherface, despite the limitations - the retraining is slow only if there are more than ~400 tagged friends in the database, which is a rarity. The main concern is pose variation - for that, I plan to link multiple poses of the same person with the same ID. As a consequence, the initial accuracy while training shall be less, but after some time it would be good enough.</div>


</blockquote><div> </div><div>As you mentioned , your main concern is pose variation. Fisherface is IMHO ( from my work on face recognition in the past 1 year ) not the right way to go for the following reasons:<br><br>1. Fisherfaces uses the same methodology as eigenfaces ( which is easily known from a preliminary survey of the subject) and    <br>
   doesn't yield satisfactory results in <i>expression and pose variant</i> images.<br><br>

2. Only advantage of fisherface over eigenface is that it makes the recognition<i> illumination</i> <i>invariant</i><i></i>. But that's not much of a <br>    problem as in family / group photos that digikam will mostly encounter photos taken with camera flash and outdoor photographs 

<br>    which result in well lit photographs.<br><br>Also the problem with pose and retraining of eigenfaces and fisherfaces is as follows:<br><br>Assume you are training your recognition model with training images of a single person.<br>
Since eigenfaces and fisherfaces rely on the <i>nearest neighbour classifier</i> for recognition you have to train the model with more number of images to give satisfactory recognition results.<br><br>Now let us look at <i>how many</i> training images we would need (of a single person) for satisfactory recognition results.<br>
<br>Assuming a person looking straight at the camera, a 1 degree variation in pose from 0 degree ( face towards left) to 180 degree (face towards right) would result in 180 images. <br><br>Now if the person looks upwards 1 degree (again we would have 180 images from left to right) and if we keep varying poses we would get approximately 180 x 180 images of the same person.<br>
<br>Also for each successive pose varied image added to the training set the training time would increase exponentially.<br><br>Now, there are two problems to this:<br><br>1.There will not be sufficient training images (so many pose variations of a single person is difficult to get)<br>
   to get satisfactory results.i.e Training would take a long time.<br><br>2.Since Eigenfaces and Fisherfaces ( in general Principal Component based models ) calculate a single set of             <br>   eigenfaces/fisherfaces from the training set. For a well trained recognizer the training time would be enormous.<br>
</div><div> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div><br></div><div>But still, if you can implement EBGM for libface, it'd be great :) We'd have one more algorithm in the bag. It's just that one person can't finish everything in time. So since you're willing, start EBGM then. Eigenfaces is almost complete.</div>
</blockquote><div><br>I would love to add the implementation to libface. But looking at the similarity between Eigenfaces and Fisherfaces IMHO the<br>effort should be to get as many different algorithms implemented as possible.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>PS: Hopefully someone will figure out if OpenCL can be used in digiKam or not.</div>
</blockquote><div><br>more opinions / suggestions from the digikam community are welcome.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><div><br></div><div>
<br><div class="gmail_quote"><div><div></div><div>On Sat, Apr 17, 2010 at 9:21 PM, kunal ghosh <span dir="ltr"><<a href="mailto:kunal.t2@gmail.com" target="_blank">kunal.t2@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
Hi,<br><div class="gmail_quote">I am implementing the face recognition algorithm for digikam, and wanted to use <a href="http://en.wikipedia.org/wiki/GPGPU" target="_blank">GPGPU</a> frameworks for the same. But<br>was not able to decide which framework to use <a href="http://en.wikipedia.org/wiki/OpenCL" target="_blank">OpenCL</a> or <a href="http://en.wikipedia.org/wiki/CUDA" target="_blank">CUDA</a> (C for CUDA specifically).<br>







<br>PS: I am willingly not including any more information about either of the above frameworks to attract unbiased opinions.<br><br>Also, i could code part that would execute on the GPU in python , shortening the development cycle. Good python bindings exist for either GPU programming frameworks. Py[CUDA,OpenCL] are the bindings.<br>







<br>Python functions are easily callable from within C/C++ code as demonstrated by <a href="http://docs.python.org/release/2.5.2/ext/callingPython.html" target="_blank">Link 1</a> <a href="http://www.codeproject.com/KB/cpp/embedpython_1.aspx" target="_blank">Link2</a> and <a href="http://www.linuxjournal.com/article/8497" target="_blank">Link3</a><br>







so, is it fine if the algorithms are implemented in python and then called from within digikam.<br><br>all suggestions , comments welcome.<br><br></div>-- <br>regards<br>-------<br>Kunal Ghosh<br>Dept of Computer Sc. & Engineering.<br>






Sir MVIT<br>Bangalore,India<br><br>Quote:<br>"Ignorance is not a sin, the persistence of ignorance is"<br><font color="#888888">--<br>"If you find a task difficult today, you'll find it difficult 10yrs later too !"<br>





-----<br>
"Failing to Plan is Planning to Fail"<br><br>Blog:<a href="http://kunalghosh.wordpress.com" target="_blank">kunalghosh.wordpress.com</a><br>Website:<a href="http://www.kunalghosh.net46.net" target="_blank">www.kunalghosh.net46.net</a><br>





V-card:<a href="http://tinyurl.com/86qjyk" target="_blank">http://tinyurl.com/86qjyk</a><br>
<br>
</font><br></div></div><div>_______________________________________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org" target="_blank">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>Aditya Bhatt<br>Blog : <a href="http://adityabhatt.wordpress.com" target="_blank">http://adityabhatt.wordpress.com</a><br>Face Recognition Library : <a href="http://libface.sourceforge.net" target="_blank">http://libface.sourceforge.net</a><br>






</div>
<br>_______________________________________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org" target="_blank">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>regards<br>-------<br>Kunal Ghosh<br>Dept of Computer Sc. & Engineering.<br>Sir MVIT<br>Bangalore,India<br><br>Quote:<br>"Ignorance is not a sin, the persistence of ignorance is"<br>




--<br>"If you find a task difficult today, you'll find it difficult 10yrs later too !"<br>-----<br>"Failing to Plan is Planning to Fail"<br><br>Blog:<a href="http://kunalghosh.wordpress.com" target="_blank">kunalghosh.wordpress.com</a><br>




Website:<a href="http://www.kunalghosh.net46.net" target="_blank">www.kunalghosh.net46.net</a><br>V-card:<a href="http://tinyurl.com/86qjyk" target="_blank">http://tinyurl.com/86qjyk</a><br><br>