help-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-GIFT] Using GIFT


From: Henning Müller
Subject: Re: [help-GIFT] Using GIFT
Date: Thu, 14 Aug 2008 16:29:39 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

Hi,

it looks like your collections is empty, so not a single image was indexed. Have you given the correct path for gift-add-collection? What file extensions do your images have? They need to have extensions recognized by GIFT in the gift-add-collection script.

Cheers, Henning

Majid NAJJAR a écrit :
Well unfortunatly i don't have any Perl skills,  I remember editing many header 
files .h and c files .c to add some libraries like #include because the 
installation was prompting me errors.
I'm using gcc 4.3.1 20080507 on openSUSE 11.0.
I've attached the files you've requested.
But to retreive all of the output is a little bit tough, i'll restate some:



linux-2nqc:/usr/local/bin # ./gift-add-collection.pl /home/majid/Desktop/Logo
Parameterless "use IO" deprecated at 
/usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/XML/Writer.pm line 16
Constant subroutine main::SEEK_SET redefined at ./gift-add-collection.pl line 32
Constant subroutine main::SEEK_END redefined at ./gift-add-collection.pl line 32
Constant subroutine main::SEEK_CUR redefined at ./gift-add-collection.pl line 32
locale: cannot read character map directory `/usr/share/i18n/charmaps': No such 
file or directory
I am assuming that the system is using US-ASCII as encoding.
Within the xml files generated, we will use UTF-8 as encoding method
File /root/.gift-add-collection could not be opened (No such file or 
directory), so I won't use it


 I will read the images in:
 /home/majid/Desktop/Logo/

 I will generate feature files which I put into:
 /root/gift-indexing-data/Logo/

 The index files will be stored in:
 /root/gift-indexing-data/Logo/

 The URLs I will generate will have the prefix:
 file:/home/majid/Desktop/Logo/

This file was last modified 1217838684 after the epoch
Estimating how many images we are going to index: 0
Creating an inverted file using the files/root/gift-indexing-data/Logo//
/root/gift-indexing-data/Logo///url2fts.xml
/root/gift-indexing-data/Logo///InvertedFileFeatureDescription.db


Opening /root/gift-indexing-data/Logo//url2fts.xml ...success.
constructing parser
Reading
82 characters
Read url2fts.xml
Successfully processed
URLFile /root/gift-indexing-data/Logo//url2fts.xml processed.
NEWGEN I want to use/generate the 
files:/root/gift-indexing-data/Logo//InvertedFile.db
/root/gift-indexing-data/Logo//InvertedFileOffset.db
/root/gift-indexing-data/Logo//url2fts.xml
/root/gift-indexing-data/Logo//InvertedFileFeatureDescription.db
files successfully opened
before mergesort
STARTING mit MERGESIZE1
MERGESORT MergeSize 12
endmerge
after mergesort. The last file I used was 
/root/gift-indexing-data/Logo//gift-auxiliary-2
Opening sorted stream for reading. State (should be '1'): 0xbff5ca8c
[inFeatureID:4/0;inPosition:16/0==0]20
Writing Chunk for Feature ID 0. The Offset is 0x0=0
The collection frequency is: inf
gift-generate-inverted-file: CInvertedFileChunk.cc:117: bool 
CInvertedFileChunk::writeBinary(std::ostream&, TID, si) const: Assertion 
`!"collection frequency out of range"' failed.

PROGRESS: 99%


Copying /root/gift-config.mrml to /root/gift-config.mrml-old

XML::DOM::Attr=ARRAY(0x8aa57b4)
Can't locate object method "getAttribute" via package "XML::DOM::Attr" at 
./gift-add-collection.pl line 796,  line 44.

THANKS IN ADVANCE, I DON'T WANT TO RUSH YOU SIR BUT THE SOONER I CAN GET A 
RESULT THE BETTER IT IS.
Regards,

----------------------------------------
Date: Wed, 13 Aug 2008 12:04:46 -0500
From: address@hidden
To: address@hidden
Subject: Re: [help-GIFT] Using GIFT

Hi Majid,

I'm sorry to leave you hanging.  Unfortunately I started having hard
drive trouble last week, and my drive has completely died now.  I'm
hoping to reinstall the GIFT when I have a new drive, but
unfortunately it will be a while before I'm ready to start that
process.

At this point, I think the best suggestion I can give is to send
another request to the help-gift list.  Include a complete copy of all
the output you get when you start up the GIFT server, and the file
"gift-config.mrml", for starters.  If you know (or have time to learn)
a bit of Perl, you can read the "gift-add-collection.pl" file to try
to determine what's going on.  Apparently the error occurs just after
the script prints "Copying /home/maj/gift-config.mrml to
/home/maj/gift-config.mrml-old", potentially on line 796 or 44(?).
Now that I'm thinking about it, it would probably be useful to include
a copy of the file "gift-add-collection.pl", just in case your copy is
slightly different from other people's.

I'm sorry I can't be more help; best wishes,
Niles


On Tue, Aug 12, 2008 at 5:29 AM, Majid NAJJAR  wrote:
Dear Niles
I m really sorry to bother u again, but i would appreciate if i can have an
answer soon, I m really stucked and i have  a deadline for having something
working
i thank u a lot in advance
Regards


________________________________
Date: Tue, 5 Aug 2008 15:38:34 -0500
From: address@hidden
To: address@hidden
Subject: Re: [help-GIFT] Using GIFT

Hi, I remember having a similar problem--this is mentioned elsewhere
on the list, and I think the problem is with the add-collection
script. Unfortunately I don't remember how I resolved the issue or if
the solution is mentioned on the list. If I have some time tonight or
tomorrow, I'll look through my version of the script and see if I can
figure out what changes I made.

Just wanted to let you know that I'm not ignoring you though :)

best,
Niles

On Mon, Aug 4, 2008 at 6:38 AM, Majid NAJJAR wrote:
Hi, GIFT is said to be a great tool to find similar images.
After days of fighting I've been able to install GIFT 0.1.14 on Linux
openSUSE 11.0. But i don't know what to do with it !!!
I don't want to read and compare images from a database ( i will do it
later on ) but i need to do it from a specific folder.

in /usr/local/bin i've executed ./gift-add-collection.pl
/home/maj/Desktop/Logo/
then executed ./gift



The current configuration directory is: /home/maj
----------------------------------------
Opening port 12789
----------------------------------------
TCP socket successfully initialized:9
TCP socket successfully initialized:10
Waiting for connection...



A new folder was Logo_thumbnails but nothing inside it.


I've tried to repeat the operation but when i've launched the
./gift-add-collection.pl /home/maj/Desktop/Logo/
an error showed up:

PROGRESS: 99%


Copying /home/maj/gift-config.mrml to /home/maj/gift-config.mrml-old

XML::DOM::Attr=ARRAY(0x8aa482c)
Can't locate object method "getAttribute" via package "XML::DOM::Attr"
at ./gift-add-collection.pl line 796, line 44.


Is it normal to have such error? And how can I use GIFT in order to find
similar images ? Would you please give me some uselful tutorials ?!

NB: I'm new to Linux so please give me a clear explanation.

Thanks in advance,

_________________________________________________________________
Connect to the next generation of MSN Messenger

http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

_______________________________________________
help-GIFT mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gift

________________________________
Discover the new Windows Vista Learn more!

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx


------------------------------------------------------------------------

_______________________________________________
help-GIFT mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gift




reply via email to

[Prev in Thread] Current Thread [Next in Thread]