Forum: help
Monitor Forum | Start New ThreadRE: The gabor block is not registred in the a [ Reply ] By: Antoine Liutkus on 2007-12-06 17:08 | [forum:5595] |
merci c'est super ! |
RE: The gabor block is not registred in the a [ Reply ] By: Benjamin Roy on 2007-12-06 17:02 | [forum:5594] |
$MPTK_CONFIG_FILENAME devrait valoir /home/aliutkus/dev/MPTK-Source-0.5.4/bin/path.xml et non pas /home/aliutkus/dev/MPTK-Source-0.5.4/bin comme indiqué dens le readme: In order to set an environment variable on Linux like os: -with Bash shell: export MPTK_CONFIG_FILENAME="path_to_MPTK/bin/path.xml" Cordialement |
RE: The gabor block is not registred in the a [ Reply ] By: Antoine Liutkus on 2007-12-06 16:51 | [forum:5593] |
bah oui j'ai bien vu mais : ------------ echo $SHELL /bin/bash ------------ ---------- echo $MPTK_CONFIG_FILENAME /home/aliutkus/dev/MPTK-Source-0.5.4/bin ----------- ------------------------ ls /home/aliutkus/dev/MPTK-Source-0.5.4/bin make_regression_constants mpcat mpd mpd_demix mpf mpr mpview path.xml readme.txt ------------------------- cat /home/aliutkus/dev/MPTK-Source-0.5.4/bin/path.xml <?xml version="1.0" encoding="ISO-8859-1"?> <configpath> <path name="dll_directory" path="/home/aliutkus/dev/MPTK-Source-0.5.4/lib" /> <path name="fftw_wisdomfile" path="/home/aliutkus/dev/MPTK-Source-0.5.4/bin/default_fftw_wisdom_file"/> </configpath> |
RE: The gabor block is not registred in the a [ Reply ] By: Benjamin Roy on 2007-12-06 16:41 | [forum:5592] |
Pour la deuxième erreur, le message signifie que la syntax du dictionnaire ne vérifie pas les normes xml Je vous invite à consulter la documentation à ce sujet. Cordialement. |
RE: The gabor block is not registred in the a [ Reply ] By: Benjamin Roy on 2007-12-06 16:39 | [forum:5591] |
Bonjour, Oui le système de chargement dynamique des blocks/atoms impose qu'une variable d'environnement soit renseignée conformément aux instructions du fichier readme situé dans le répertoire utils: This document describes how to use THE MPTK utilities. On all plateform, the utilities need an environment variable called MPTK_CONFIG_FILENAME to be set with the path of the path.xml file located in the bin directory. This file defines the path to the Atoms/Block plugin location. On Windows system in the case you have installed MPTK library and utilities in an non standard directory (eg different of "C:/Program Files/MPTK-0.5.4") you have to modify the path inside of this file with the real installation path. In order to set an environment variable on Linux like os: -with Bash shell: export MPTK_CONFIG_FILENAME="path_to_MPTK/bin/path.xml" -with C-shell: setenv MPTK_CONFIG_FILENAME "path_to_MPTK/bin/path.xml" You can check if the environment variable is correctly set with: echo $MPTK_CONFIG_FILENAME All the command line executable have a context help accessible by using the --help option. For the MPTK-GUI executable, on Linux and OS X platform you need to launch this GUI application in the bin directory of your installation Cordialement Benjamin. |
RE: The gabor block is not registred in the a [ Reply ] By: Antoine Liutkus on 2007-12-06 16:38 | [forum:5590] |
quand j'utilise un autre dictionnaire, plus simple : <?xml version="1.0" encoding="ISO-8859-1"?> <libVersion>0.2</libVersion> <dict> <block type="gabor"> <par type="windowLen">128</par> <par type="windowShift">32</par> <par type="fftSize">128</par> <window type="gauss" opt="0"></window> </block> <block type="gabor"> <par type="windowLen">256</par> <par type="windowShift">64</par> <par type="fftSize">256</par> <window type="gauss" opt="0"></window> </block> <block type="gabor"> <par type="windowLen">512</par> <par type="windowShift">128</par> <par type="fftSize">512</par> <window type="gauss" opt="0"></window> </block> <block type="gabor"> <par type="windowLen">1024</par> <par type="windowShift">256</par> <par type="fftSize">1024</par> <window type="gauss" opt="0"></window> </dict> j'ai : -------------------------- mptk INFO -- mpd - End command line. mptk INFO -- mpd - Loading the dictionary... mptk INFO -- mpd - (In the following, spurious output of dictionary pieces would be a symptom of parsing errors.) mptk ERROR -- MP_Dict_c::load_xml_file(const char* fName) - Error while loading the dictionary file [test2.xml]. mptk ERROR -- MP_Dict_c::load_xml_file(const char* fName) - Error ID: 9 . mptk ERROR -- MP_Dict_c::load_xml_file(const char* fName) - Error description: Error reading end tag. . mptk ERROR -- MP_Dict_c::init(dictFileName) - The dictionary scanned from file [test2.xml] contains no recognized blocks. mptk ERROR -- mpd - Failed to create a dictionary from XML file [test2.xml]. ----------------------------- |
The gabor block is not registred in the atom [ Reply ] By: Antoine Liutkus on 2007-12-06 16:18 | [forum:5588] |
Bonjour ! J'ai téléchargé et installé MPTK, je suis sous linux debian 4.0 et j'essaye d'utiliser mpd. J'obtiens cette erreur : mptk INFO -- mpd - ------------------------------------ mptk INFO -- mpd - MPD - MATCHING PURSUIT DECOMPOSITION mptk INFO -- mpd - ------------------------------------ mptk INFO -- mpd - The command line was: mpd -D /home/aliutkus/dev/MPTK/test.xml -n 10000 /home/aliutkus/dev/musique.wav resultat.bin mptk INFO -- mpd - End command line. mptk INFO -- mpd - Loading the dictionary... mptk INFO -- mpd - (In the following, spurious output of dictionary pieces would be a symptom of parsing errors.) mptk ERROR -- MP_Dict_c::parse_param_list(TiXmlNode * pParent, map<const char*, PropertiesMap, mp_ltstring> *setPropertyMap) - The gabor block is not registred in the atom factory. Erreur de segmentation (core dumped) -- le dictionnaire que j'utilise est celui publié quelque part ici : <?xml version="1.0" encoding="ISO-8859-1"?> <dict> <libVersion>0.2</libVersion> <blockproperties name="GAUSS-WINDOW"> <param name="windowtype" value="gauss"/> <param name="windowopt" value="0"/> </blockproperties> <block uses="GAUSS-WINDOW"> <param name="type" value="gabor"/> <varparam name="fftSize"> <var>64</var> <var>32</var> <var>16</var> <var>8</var> </varparam> <param name="windowLen" value="8"/> <varparam name="windowShift"> <var>32</var> <var>16</var> <var>8</var> </varparam> </block> <block uses="GAUSS-WINDOW"> <param name="type" value="gabor"/> <param name="windowLen" value="256"/> <param name="windowShift" value="64"/> <param name="fftSize" value="256"/> </block> <block uses="GAUSS-WINDOW"> <param name="type" value="gabor"/> <param name="windowLen" value="512"/> <param name="windowShift" value="128"/> <param name="fftSize" value="512"/> </block> <block uses="GAUSS-WINDOW"> <param name="type" value="gabor"/> <param name="windowLen" value="1024"/> <param name="windowShift" value="256"/> <param name="fftSize" value="1024"/> </block> <block uses="GAUSS-WINDOW"> <param name="type" value="harmonic"/> <param name="fftSize" value="256"/> <param name="windowLen" value="256"/> <param name="windowShift" value="128"/> <param name="f0Min" value="340"/> <param name="f0Max" value="1000"/> <param name="numPartials" value="5"/> </block> <block uses="GAUSS-WINDOW"> <param name="type" value="harmonic"/> <param name="fftSize" value="512"/> <param name="windowLen" value="512"/> <param name="windowShift" value="256"/> <param name="f0Min" value="440"/> <param name="f0Max" value="1000"/> <param name="numPartials" value="10"/> </block> <blockproperties name="GAUSS-WINDOW-FOMIN" refines="GAUSS-WINDOW"> <param name="f0Min" value="440"/> </blockproperties> <block uses="GAUSS-WINDOW-FOMIN"> <param name="type" value="harmonic"/> <param name="fftSize" value="1024"/> <param name="windowLen" value="1024"/> <param name="windowShift" value="512"/> <param name="f0Max" value="1000"/> <param name="numPartials" value="10"/> </block> <block uses="GAUSS-WINDOW-FOMIN"> <param name="type" value="harmonic"/> <param name="fftSize" value="2048"/> <param name="windowLen" value="2048"/> <param name="windowShift" value="1024"/> <param name="f0Max" value="1000"/> <param name="numPartials" value="10"/> </block> <block> <param name="type" value="dirac"/> </block> </dict> ------------------------ et j'ai pourtant exporté export MPTK_CONFIG_FILENAME=~/dev/MPTK-Source-0.5.4/bin qui contient bien path.xml dont voici le contenu : <?xml version="1.0" encoding="ISO-8859-1"?> <configpath> <path name="dll_directory" path="/home/aliutkus/dev/MPTK-Source-0.5.4/lib" /> <path name="fftw_wisdomfile" path="/home/aliutkus/dev/MPTK-Source-0.5.4/bin/default_fftw_wisdom_file"/> </configpath> ------------------------- je suis donc bloque quand j'essaye d'utiliser mpd.. j'ai cherché sur la documentation en ligne et en pdf mais n'arrive pas à régler ce problème, je vous serais très reconnaissant si vous aviez des idées de la cause du problème ! amicalement, Antoine |