Fwd: Find documentation about FIRE

18 views
Skip to first unread message

Valentin JANIAUT

unread,
Jul 24, 2009, 12:36:21 AM7/24/09
to fire-cbir
Hello,

I am actually looking more deeply inside of FIRE. For my own purpose, I am trying to write some documentation about FIRE.

So firstly, I generated a documentation with Doxygen. You can have a look about it here : http://140.112.31.156/fire/doc/

I am also trying to write what I understand from my reading of the source code and the experience I have with FIRE. You can find this on my personal wiki : http://wiki.valeuf.org/wiki.cgi/FIRE

This documentation is really for my own purpose, but I thought it may be helpful for other people too.

Feel you free ta add any comments or edit the page to correct my froggy English or my misstakes.

Valentin JANIAUT
In Korea : http://korea.valeuf.org/en/ (English)
En Corée : http://korea.valeuf.org/fr/ (Français)
GSM : +82 010 2524 1428

swapnil barai

unread,
Jul 24, 2009, 12:46:46 AM7/24/09
to fire...@googlegroups.com
Great Wok man...Appreciate your efforts...This would be really helpful..

Do you also know how to get the upload image thing working..it wasnt working for me.

Valentin JANIAUT

unread,
Jul 24, 2009, 3:01:29 AM7/24/09
to fire...@googlegroups.com
On Fri, Jul 24, 2009 at 12:46 PM, swapnil barai <swapnil...@gmail.com> wrote:
Great Wok man...Appreciate your efforts...This would be really helpful..

Thanks.


Do you also know how to get the upload image thing working..it wasnt working for me.

I quickly wrote a page about it :  http://wiki.valeuf.org/wiki.cgi/FIRE/HowToFixUploadFeature Please let me know if it solved your problems. If not can you describe your problem here. Maybe someone can help you.

Thomas Deselaers

unread,
Jul 24, 2009, 4:26:58 AM7/24/09
to fire...@googlegroups.com
Hi Valentin,

This is a fantastic thing that you are starting there.

May I suggest to put the information contained in the wiki into the
pages corresponding to the fire google group?

Cheers,
thomas
--
http://thomas.deselaers.de

Valentin JANIAUT

unread,
Jul 24, 2009, 8:32:08 AM7/24/09
to fire-cbir
On Fri, Jul 24, 2009 at 4:26 PM, Thomas Deselaers <dese...@gmail.com> wrote:

Hi Valentin,

This is a fantastic thing that you are starting there.

Thanks.


May I suggest to put the information contained in the wiki into the
pages corresponding to the fire google group?

Woow, I never see this feature in google group before. This is nice. I started to transfer some info on it. But actually, I am trying what is the best to put source code and so. Because it is not really pretty actually. You can see a result here : http://groups.google.com/group/fire-cbir/web/howtofixuploadfeature

What about transfer fire on http://code.google.com/hosting/createProject ? It would be maybe easier to maintain documentation ? I do not if it is possible since this also a project from a university.

If you want I can try to have a look about this.

Thomas Deselaers

unread,
Jul 24, 2009, 8:39:59 AM7/24/09
to fire...@googlegroups.com
>> May I suggest to put the information contained in the wiki into the
>> pages corresponding to the fire google group?
>
> Woow, I never see this feature in google group before. This is nice. I
> started to transfer some info on it. But actually, I am trying what is the
> best to put source code and so. Because it is not really pretty actually.
> You can see a result here :
> http://groups.google.com/group/fire-cbir/web/howtofixuploadfeature

Well, I have just looked into the formatting options. And it looks
like it is possible to find proper formatting. The editor works pretty
WYSIWYGish.

> What about transfer fire on http://code.google.com/hosting/createProject ?
> It would be maybe easier to maintain documentation ? I do not if it is
> possible since this also a project from a university.
>
> If you want I can try to have a look about this.

Mmh. This is a bit difficult.
FIRE was developed in Aachen, now I am not in Aachen anymore.
Actually, currently I am not working on FIRE much. I have on my
todo-list somewhere to release the latest source code I have which
includes the diversity-reranking code from my CIVR 2009 paper and
maybe some other minor things.

However, currently, I cannot find time to do it. This would probably
also include fixes to be able to compile FIRE with the most recent
GCC.

I will think about it.

Cheers,
thomas

--
http://thomas.deselaers.de

swapnil barai

unread,
Aug 9, 2009, 5:56:13 AM8/9/09
to fire...@googlegroups.com
Hey

I tried the fixes for making the upload button working as given by Thomas and Valentin. However still what is happening is when I click the upload button is that the open file dialog box(OFD) opens, the Fire Web interface rehreshes (on its own), then I select an image in the OFD, however the image doesnt get uploaded to the server and says No Results retrieved. I even checked my /tmp directory and there were no images copied there. Would appreciate your help.

Thanks
Swapnil

On Fri, Jul 24, 2009 at 12:01 AM, Valentin JANIAUT <val...@gmail.com> wrote:
On Fri, Jul 24, 2009 at 12:46 PM, swapnil barai <swapnil...@gmail.com> wrote:
Great Wok man...Appreciate your efforts...This would be really helpful..

Thanks.


Do you also know how to get the upload image thing working..it wasnt working for me.

I quickly wrote a page about it :  http://wiki.valeuf.org/wiki.cgi/FIRE/HowToFixUploadFeature Please let me know if it solved your problems. If not can  your help.you describe your problem here. Maybe someone can help you.

Valentin JANIAUT

unread,
Aug 9, 2009, 9:49:34 AM8/9/09
to fire...@googlegroups.com
On Sun, Aug 9, 2009 at 11:56 AM, swapnil barai <swapnil...@gmail.com> wrote:
Hey

I tried the fixes for making the upload button working as given by Thomas and Valentin. However still what is happening is when I click the upload button is that the open file dialog box(OFD) opens, the Fire Web interface rehreshes (on its own), then I select an image in the OFD, however the image doesnt get uploaded to the server and says No Results retrieved. I even checked my /tmp directory and there were no images copied there. Would appreciate your help.

The problem you describe  seems to be what I called : "No file uploaded" in the document I wrote.

So did you apply the patch I proposed. Replace the piece of JavaScript by a button Upload in the method newFileForm()

Good luck

swapnil barai

unread,
Aug 9, 2009, 12:15:20 PM8/9/09
to fire...@googlegroups.com

Yes already applied that code. Still it doesnt seem to work.

Thanks

swapnil barai

unread,
Aug 9, 2009, 4:53:02 PM8/9/09
to fire...@googlegroups.com
Also in the fix you say :<So now the form is submitted by a button : "Upload">. But i doint even see a button called upload on the web interface. Do i need to add it?

Thanks
Swapnil

Valentin JANIAUT

unread,
Aug 9, 2009, 9:52:57 PM8/9/09
to fire...@googlegroups.com
On Mon, Aug 10, 2009 at 4:53 AM, swapnil barai <swapnil...@gmail.com> wrote:
Also in the fix you say :<So now the form is submitted by a button : "Upload">. But i doint even see a button called upload on the web interface. Do i need to add it?


It means you did not apply correctly the path. The button should be there since you add the sine :
result+="""<input type="submit" name="upload" value="Upload">"""

You have to make the change in the method newFileForm in the fire.py file which should be in the cgi-bin folder of your web application.

swapnil barai

unread,
Aug 11, 2009, 12:49:16 AM8/11/09
to fire...@googlegroups.com
Hey

Thanks for all the help man, I have finally got the Upload thing working. Actually initially I was making the changes in the fire.py file in the fire2.2/webinterface folder and forgot to copy it in the apache /cgi-bin folder, hence the button was not appearing. (So probably u can also add this to the wiki it would help the newbies like me :)).

After doing that the upload button appeared however still the image was not getting uploaded to the server and neither to the \tmp directory. After looking at the code closely with one of my Python expert friend we found out that the correct fix should be.

def newFileForm():
    result="<hr><h3> Upload - Use query image from your file system </h3>"
    result+="""<input type="hidden" name="newFile" value="0">"""
    result+="""<input name="absolute_path" type="file" size="30">"""
    result+="""<input type="submit" name="Upload" onClick="document.queryForm.newFile.value=1;" value="Upload">"""
    result+="\n"
    return result

We need to set  document.queryForm.newFile.value=1, because it is a condition that is being checked later as validation for whether query image has been uploaded. And if it is not set to  1 the upload button would not work.

Another minor fix was to uncomment all the lines in config.py in apache/cgi-bin.

Probably you can also add these to your documentation about fire, and make it more helpful for others too. Appreciate your help a lot.

Thanks
Swapnil
Reply all
Reply to author
Forward
0 new messages