|
From: | risc |
Subject: | Re: [help-GIFT] gift-write-feature-descs segfaults... (is the GIFT broken?) |
Date: | Mon, 28 Aug 2006 16:25:11 -0500 |
User-agent: | Mutt/1.4.1i |
Replying to myself.. i'm bad at this. Patch to repair the problem committed to the tree. basically, I was just not testing the "second binary". that, and a mis-read. My Fault, My Fix. attaching fix here, and the script i now use to perform tests. One Dead Bug. Julia Longtin <address@hidden> On Mon, Aug 28, 2006 at 01:41:03PM -0500, address@hidden wrote: > David, Jonas: > > I use a test script to verify my work before commit. > I was just very singlemindedly testing the feature extractor only. > > I've upgraded my test script to handle the InvertedFileFeatureDescription.db > checks as well. > > Jonas: > that one function call isnt all of the problem. i've fixed it locally, > and theres still corruption in the InvertedFile... > > I'll be working on this for the next four or five hours, and will test > the InvertedFile... before each patch. > > Testing only helps if you actually test every part. :) > > Doing what i can... > > Julia Longtin <address@hidden> > > > On Mon, Aug 28, 2006 at 11:31:48AM +0100, David Squire wrote: > > Jonas Lindqvist wrote: > > > > > >David Squire wrote: > > > > > > > >A "test" makefile target would be great. > > > > > >>>For example, using the latest CVS version of the GIFT, I was able to > > >>>run gift-add-collection on a collection, and query it for a random > > >>>set of images. No problem. However, whenever asking for any similar > > >>>images, it failed. > > >>Well of course I meant an actual similarity query. From my point of > > >>view getting random images is not really a query (though that is how > > >>it appears in MRML and the code). Originally (before MRML) I did this > > >>in the interface, not by querying. > > > > > >:-) Yes, of course... My example was a rather over-simplified way of > > >illustrating that some parts may work when others don't. > > >Testing that we get *a* result doesn't really prove that the images in > > >the result are at all similar to the query image(s). But then again, > > >it's better than nothing. > > > > > >I'm not sure if it's doable in the GIFT, but it could be handy to be > > >able to break out parts of the code to be used in some sort of "unit > > >tests", to assure that image A is still quite similar to image B but > > >not to image C, etc. The sources could be distributed with a handful > > >of images that can be used for the unit-tests. With a controlled set > > >of images we could also test that the server produces a predictable > > >result over and over again. (Apart from the random stuff). > > >But this is obvious of course... > > >Unfortunately I don't know enough about the inner workings of the GIFT > > >to be of any help on this. > > >(But I would love having tests like this, when playing with the code) > > > > > > > > Yes, that is exactly the sort of thing I had in mind. We could bundle a > > tiny test collection (say 10 images) with the GIFT, and the test would > > add that collection, and then fire MRML queries at the server for each > > image, checking that the query result had the right images in the right > > order with the right similarity values. This is certainly possible using > > the Perl interface. The only part I would need to put more thought into > > right now would be how and where to run the various executables before > > "make install", and where the indexing files etc. would go. > > > > Regards, > > > > David > > > > > > -- > > Dr David McG. Squire, Senior Lecturer, on sabbatical in 2006 > > Caulfield School of Information Technology, Monash University, Australia > > CRICOS Provider No. 00008C http://www.csse.monash.edu.au/~davids/ > > > > > > > > _______________________________________________ > > help-GIFT mailing list > > address@hidden > > http://lists.gnu.org/mailman/listinfo/help-gift > > > _______________________________________________ > help-GIFT mailing list > address@hidden > http://lists.gnu.org/mailman/listinfo/help-gift
51-ChangeLog
Description: Text document
51-FeatureExtraction_extract_block_features.c_fix.patch
Description: Text document
51-FeatureExtraction_write_feature_descs.c_fix.patch
Description: Text document
run_test.sh
Description: Bourne shell script
[Prev in Thread] | Current Thread | [Next in Thread] |