help-gift
[Top][All Lists]
Advanced

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

Re: [help-GIFT] the algorithm config


From: David Squire
Subject: Re: [help-GIFT] the algorithm config
Date: Sat, 18 Apr 2009 09:29:29 +1000
User-agent: Thunderbird 1.5.0.14 (Macintosh/20071210)

For what it's worth, I did modify the config file to do this sort of thing. I've attached it. It contains stuff specific to my modified version of GIFT that uses text annotation too, but it should give you the idea.

Regards,

David


Henning Müller wrote:
It does not make much sense to change the configuration file for this. This is an option in the MRML of the query.
The interfaces allow you this as does the perl module for querying.

Cheers, Henning

higo ic a écrit :
Hi
i want to query images only color,and i modify the config.mrml cut the texture-h texture-b and now this is the color only query algorithm but when i want texture only,i have to cut the color So i made two algorithms for color and texture seperately, named "algorithm-color" "algorithm-texture" update the config.mrml But the server didn't find these not existing algorithms,and of cource they are not in the gift My question is 1 when i want to color or texture,how do i modify the congifuration file just one time , there is only a algorithm which gift can read 2 And the sub4 seems to return the score not exceeds 0.25 , the other 3can make the 0.9+

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

_______________________________________________
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


--
Dr David McG. Squire,  Senior Lecturer
Clayton School of Information Technology, Monash University, Australia
CRICOS Provider No. 00008C       http://www.csse.monash.edu.au/~davids/
<?xml version="1.0" standalone="no"?>
<!DOCTYPE mrml SYSTEM "file:/home/users/davids/share/mrml.dtd">
<!-- This file has become quite a free interpretation of MRML 
     the above !DOCTYPE is rather for the use of psgml than
     a promise that the following is pure MRML. In fact the
     parser does not validate.

This is a configuration file for the server. It contains
information about collections, algorithms and
property sheets.


THIS FILE NEEDS CLEANING. ABOUT HALF OF THE LINES HERE ARE
LEGACY CODE. HOWEVER, IT IS NOT YET TESTED HOW THINGS BEHAVE
WHEN YOU REMOVE THE LEGACY CODE. SO, FOR A WHILE YOU HAVE
TO LIVE WITH QUITE A NUMBER OF OBSOLETE TAGS.

-->
<mrml>
  <cui-configuration>
    <algorithm-list>
    <!--COMMENT The new definiton of the default algorithm
                The default algorithm performs in fact a meta
                query of several inverted file queries.
                Each sub-query of the meta query is
                specialised on one of the feature groups 

                Color histogram
                Color block
                Gabor histogram
                Gabor block

                Each one of them is pruned in adifferent way.
                (this is the goal of the operation)
      -->
        <!-- ############################# a-dms7  ########################### 
-->
        <!-- 50% of weight for four visual feature groups (each 12.5%)m and 50% 
for
                 the text features -->
        <algorithm algorithm-id="adefault" algorithm-type="adefault" 
algorithm-name="50% Visual, 50% Text" collection-id="c-2-59-1-24-2-105-4-82-0" 
cui-block-color-histogram="no" cui-block-color-blocks="no" 
cui-block-texture-histogram="no" cui-block-texture-blocks="no" 
cui-pr-percentage-of-features="100" cui-base-type="multiple" 
cui-weighting-function="ClassicalIDF">
                <!-- sub-algorithm for colour histogram -->
                <algorithm algorithm-id="sub-7-1" algorithm-type="sub-7-1" 
algorithm-name="sub-7-1" cui-block-color-histogram="no" 
cui-block-color-blocks="yes" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="yes" 
cui-pr-percentage-of-features="100" cui-base-type="inverted_file" 
cui-weight="0.125"/>
                <!-- sub-algorithm for colour blocks -->
                <algorithm algorithm-id="sub-7-2" algorithm-type="sub-7-2" 
algorithm-name="sub-7-2" cui-block-color-histogram="yes" 
cui-block-color-blocks="no" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="yes" 
cui-base-type="inverted_file" cui-weight="0.125"/>
                <!-- sub-algorithm for texture histogram -->
                <algorithm algorithm-id="sub-7-3" algorithm-type="sub-7-3" 
algorithm-name="sub-7-3" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-histogram="no" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="yes" 
cui-pr-percentage-of-features="100" cui-base-type="inverted_file" 
cui-weight="0.125"/>
                <!-- sub-algorithm for texture blocks -->
                <algorithm algorithm-id="sub-7-4" algorithm-type="sub-7-4" 
algorithm-name="sub-7-4" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="no" cui-block-freetext-annotation="yes" 
cui-base-type="inverted_file" cui-weight="0.125"/>
                <!-- sub-algorithm for text annotation -->
                <algorithm algorithm-id="sub-7-5" algorithm-type="sub-7-5" 
algorithm-name="sub-7-5" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="no" 
cui-base-type="inverted_file" cui-weight="0.5"/>
                <!-- paradigm list - we place no restrictions at this time -->
                <query-paradigm-list>
                        <query-paradigm/><!-- match anything -->
                </query-paradigm-list>
        </algorithm> <!-- a-dms7 -->
<!-- ############################# a-dms2  ########################### -->
<!-- A Test algorithm for the incorporation of the textual features -->
<!-- try one with no colour features -->
<algorithm algorithm-id="a-dms2" algorithm-type="a-dms2" algorithm-name="Visual 
only, Only texture" collection-id="c-12-12-11-12-6-101-4-192-0" 
cui-base-type="multiple">

        <!-- sub-algorithm for colour texture histogram -->
        <algorithm algorithm-id="sub-2-3" algorithm-type="sub-2-3" 
algorithm-name="sub-2-3" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-histogram="no" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="yes" 
cui-pr-percentage-of-features="100" cui-base-type="inverted_file" 
cui-weighting-function="ClassicalIDF" cui-weight="0.5"/>
        <!-- sub-algorithm for colour texture blocks -->
        <algorithm algorithm-id="sub-2-4" algorithm-type="sub-2-4" 
algorithm-name="sub-2-4" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="no" cui-block-freetext-annotation="yes" 
cui-base-type="inverted_file" cui-weighting-function="ClassicalIDF" 
cui-weight="0.5"/>
        <!-- paradigm list - we place no restrictions at this time -->
        <query-paradigm-list>
                <query-paradigm/><!-- match anything -->
        </query-paradigm-list>
</algorithm>
<!-- ############################# a-dms3  ########################### -->
<!-- Another test algorithm -->
<!-- try one with no texture features -->
<algorithm algorithm-id="a-dms3" algorithm-type="a-dms3" algorithm-name="Visual 
only, Only colour" collection-id="c-12-12-11-12-6-101-4-192-0" 
cui-base-type="multiple">
        <!-- sub-algorithm for colour histogram -->
        <algorithm algorithm-id="sub-3-1" algorithm-type="sub-3-1" 
algorithm-name="sub-3-1" cui-block-color-histogram="no" 
cui-block-color-blocks="yes" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="yes" 
cui-pr-percentage-of-features="100" cui-base-type="inverted_file" 
cui-weighting-function="ClassicalIDF" cui-weight="0.5"/>
        <!-- sub-algorithm for colour blocks -->
        <algorithm algorithm-id="sub-3-2" algorithm-type="sub-3-2" 
algorithm-name="sub-3-2" cui-block-color-histogram="yes" 
cui-block-color-blocks="no" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="yes" 
cui-base-type="inverted_file" cui-weighting-function="ClassicalIDF" 
cui-weight="0.5"/>
        <!-- paradigm list - we place no restrictions at this time -->
        <query-paradigm-list>
                <query-paradigm/><!-- match anything -->
        </query-paradigm-list>
</algorithm>
<!-- ############################# a-dms5  ########################### -->
<!-- Another test algorithm -->
<!-- try one only text annotation -->
<algorithm algorithm-id="a-dms5" algorithm-type="a-dms5" algorithm-name="Text 
only" collection-id="c-12-12-11-12-6-101-4-192-0" cui-base-type="inverted_file" 
cui-weighting-function="ClassicalIDF" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-histogram="yes" 
cui-block-texture-blocks="yes" cui-block-freetext-annotation="no" 
cui-pr-percentage-of-features="100">
        <!-- paradigm list - we place no restrictions at this time -->
        <query-paradigm-list>
                <query-paradigm/><!-- match anything -->
        </query-paradigm-list>
</algorithm>

          <!--
      <algorithm algorithm-id="a-perl" algorithm-type="a-perl" 
algorithm-name="Perl link" collection-id="c-2-59-1-24-2-105-4-82-0" 
cui-base-type="perl" 
cui-perl-script-file="/home/users/davids/gift-embed-perl-modules.pl" 
cui-perl-package="CGIFTLink" cui-perl-query-function="processGIFTQueryCall" 
cui-perl-random-function="processGIFTRandomQueryCall" 
cui-weighting-function="ClassicalIDF">
        <query-paradigm-list>
           <query-paradigm type="inverted-file"/>
           <query-paradigm type="perl-demo"/>
        </query-paradigm-list>
        <property-sheet property-sheet-id="cui-p-1" 
property-sheet-type="subset" send-type="none" minsubsetsize="0" 
maxsubsetsize="1">
          <property-sheet property-sheet-id="cui-p0" caption="Modify default 
configuration" property-sheet-type="set-element" send-type="none"/>
        </property-sheet>
      </algorithm>
          -->
          <!--
      <algorithm algorithm-id="a-cidf" algorithm-type="a-cidf" 
algorithm-name="Classical IDF" collection-id="c-2-59-1-24-2-105-4-82-0" 
cui-block-color-histogram="no" cui-block-color-blocks="no" 
cui-block-texture-histogram="no" cui-block-texture-blocks="no" 
cui-pr-percentage-of-features="70" cui-base-type="inverted_file" 
cui-weighting-function="ClassicalIDF">
        <query-paradigm-list>
           <query-paradigm/>
        </query-paradigm-list>
        <property-sheet property-sheet-id="cui-p-1" 
property-sheet-type="subset" send-type="none" minsubsetsize="0" 
maxsubsetsize="1">
          <property-sheet property-sheet-id="cui-p0" caption="Modify default 
configuration" property-sheet-type="set-element" send-type="none">
          <property-sheet property-sheet-id="cui-p15" caption="Prune at % of 
features" property-sheet-type="numeric" send-type="attribute" 
send-name="cui-pr-percentage-of-features" from="20" to="100" step="5" 
send-value="70"/>
          <property-sheet property-sheet-id="cui-p1" 
property-sheet-type="subset" send-type="none" minsubsetsize="1" 
maxsubsetsize="4">
            <property-sheet property-sheet-id="cui-p12" 
send-boolean-inverted="yes" caption="Colour blocks" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-color-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p14" 
send-boolean-inverted="yes" caption="Gabor blocks" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-texture-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p13" 
send-boolean-inverted="yes" caption="Gabor histogram" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-texture-histogram" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p11" 
send-boolean-inverted="yes" caption="Colour histogram" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-color-histogram" send-value="yes"/>
            </property-sheet>
          </property-sheet>
        </property-sheet>
     </algorithm>
         -->
      <algorithm algorithm-id="a-gift-standard" 
algorithm-type="a-gift-standard" algorithm-name="Visual Only, Sep. Norm." 
collection-id="c-2-59-1-24-2-105-4-82-0" cui-block-color-histogram="no" 
cui-block-color-blocks="no" cui-block-texture-histogram="no" 
cui-block-texture-blocks="no" cui-pr-percentage-of-features="70" 
cui-base-type="multiple" cui-weighting-function="ClassicalIDF">
      <algorithm algorithm-id="sub1" algorithm-type="sub1" 
algorithm-name="sub1" cui-block-color-blocks="yes" 
cui-block-texture-histogram="yes" cui-block-texture-blocks="yes" 
cui-block-freetext-annotation="yes" cui-pr-percentage-of-features="100" 
cui-base-type="inverted_file"/>
      <algorithm algorithm-id="sub2" algorithm-type="sub2" 
algorithm-name="sub2" cui-block-color-histogram="yes" 
cui-block-texture-histogram="yes" cui-block-texture-blocks="yes" 
cui-block-freetext-annotation="yes" cui-base-type="inverted_file"/>
      <algorithm algorithm-id="sub3" algorithm-type="sub3" 
algorithm-name="sub3" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-blocks="yes" 
cui-block-freetext-annotation="yes" cui-pr-percentage-of-features="100" 
cui-base-type="inverted_file"/>
      <algorithm algorithm-id="sub4" algorithm-type="sub4" 
algorithm-name="sub4" cui-block-color-histogram="yes" 
cui-block-color-blocks="yes" cui-block-texture-histogram="yes" 
cui-block-freetext-annotation="yes" cui-base-type="inverted_file"/>
        <query-paradigm-list>
           <query-paradigm/><!-- match anything -->
        </query-paradigm-list>
        <property-sheet property-sheet-id="cui-p-1" 
property-sheet-type="subset" send-type="none" minsubsetsize="0" 
maxsubsetsize="1">
          <property-sheet property-sheet-id="cui-p0" caption="Modify default 
configuration" property-sheet-type="set-element" send-type="none">
          <property-sheet property-sheet-id="cui-p15" caption="Prune at % of 
features" property-sheet-type="numeric" send-type="attribute" 
send-name="cui-pr-percentage-of-features" from="20" to="100" step="5" 
send-value="70"/>
          <property-sheet property-sheet-id="cui-p1" 
property-sheet-type="subset" send-type="none" minsubsetsize="1" 
maxsubsetsize="4">
            <property-sheet property-sheet-id="cui-p12" 
send-boolean-inverted="yes" caption="Colour blocks" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-color-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p14" 
send-boolean-inverted="yes" caption="Gabor blocks" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-texture-blocks" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p13" 
send-boolean-inverted="yes" caption="Gabor histogram" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-texture-histogram" send-value="yes"/>
            <property-sheet property-sheet-id="cui-p11" 
send-boolean-inverted="yes" caption="Colour histogram" 
property-sheet-type="set-element" send-type="attribute" 
send-name="cui-block-color-histogram" send-value="yes"/>
            </property-sheet>
          </property-sheet>
        </property-sheet>
     </algorithm><!-- a-cidf  -->
    </algorithm-list>
    <cui-algorithm-id-list-list>        
      <cui-algorithm-id-list cui-algorithm-id-list-id="ail-inverted-file">
        <cui-algorithm-id cui-algorithm-id="a-cidf"/>
      </cui-algorithm-id-list>
    </cui-algorithm-id-list-list>       
    <collection-list listid="1">

<!-- xxyx gift-add-collection xyxx DEPENDS ON THIS LINE -->

        <collection collection-id="c-12-12-11-12-6-101-4-192-0" 
collection-name="www.metmuseum.org" 
cui-algorithm-id-list-id="ail-inverted-file" cui-number-of-images="3270" 
cui-base-dir="/home/users/davids/GIFT_data/gift-indexing-data/www.metmuseum.org//"
 cui-inverted-file-location="InvertedFile.db" 
cui-offset-file-location="InvertedFileOffset.db" 
cui-feature-description-location="InvertedFileFeatureDescription.db" 
cui-feature-file-location="url2fts.xml">
                                        <query-paradigm-list>
                                        <query-paradigm type="inverted-file"/>
                                        <query-paradigm type="perl-demo"/>
                                        </query-paradigm-list>
                                        </collection>
    <collection collection-id="c-2-59-1-24-2-105-4-82-0" 
collection-name="barcelona" cui-algorithm-id-list-id="ail-inverted-file" 
cui-number-of-images="145" 
cui-base-dir="/home/users/davids/GIFT_data/gift-indexing-data/barcelona/" 
cui-inverted-file-location="InvertedFile.db" 
cui-offset-file-location="InvertedFileOffset.db" 
cui-feature-description-location="InvertedFileFeatureDescription.db" 
cui-feature-file-location="url2fts.xml">
                                         <query-paradigm-list>
                                         <query-paradigm type="inverted-file"/>
                                         <query-paradigm type="perl-demo"/>
                                         </query-paradigm-list>
                                         </collection>
<collection collection-id="c-28-52-2-24-2-105-4-82-0" 
collection-name="greenland" cui-algorithm-id-list-id="ail-inverted-file" 
cui-number-of-images="255" 
cui-base-dir="/home/users/davids/GIFT_data/gift-indexing-data/greenland/" 
cui-inverted-file-location="InvertedFile.db" 
cui-offset-file-location="InvertedFileOffset.db" 
cui-feature-description-location="InvertedFileFeatureDescription.db" 
cui-feature-file-location="url2fts.xml">
                                         <query-paradigm-list>
                                         <query-paradigm type="inverted-file"/>
                                         <query-paradigm type="perl-demo"/>
                                         </query-paradigm-list>
                                         </collection>
<collection collection-id="c-16-46-6-24-2-105-4-82-0" collection-name="VisTex" 
cui-algorithm-id-list-id="ail-inverted-file" cui-number-of-images="1670" 
cui-base-dir="/home/users/davids/GIFT_data/gift-indexing-data/VisTex/" 
cui-inverted-file-location="InvertedFile.db" 
cui-offset-file-location="InvertedFileOffset.db" 
cui-feature-description-location="InvertedFileFeatureDescription.db" 
cui-feature-file-location="url2fts.xml">
                                         <query-paradigm-list>
                                         <query-paradigm type="inverted-file"/>
                                         <query-paradigm type="perl-demo"/>
                                         </query-paradigm-list>
                                         </collection>
<!--
<collection collection-id="c-15-0-0-25-2-105-5-83-0" collection-name="corel" 
cui-algorithm-id-list-id="ail-inverted-file" cui-number-of-images="46841" 
cui-base-dir="/home/users/davids/GIFT_data/gift-indexing-data/corel/" 
cui-inverted-file-location="InvertedFile.db" 
cui-offset-file-location="InvertedFileOffset.db" 
cui-feature-description-location="InvertedFileFeatureDescription.db" 
cui-feature-file-location="url2fts.xml">
                                         <query-paradigm-list>
                                         <query-paradigm type="inverted-file"/>
                                         <query-paradigm type="perl-demo"/>
                                         </query-paradigm-list>
                                         </collection>
-->
</collection-list>
  </cui-configuration>
</mrml>
<!-- this is for xemacs to make it start up in the right mode.
     it does the right thing, but complains
-->
<!-- ;;; Local Variables: *** -->
<!-- ;;; mode: sgml       *** -->

reply via email to

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