{"action":"created","issue":{"url":"https://api.github.com/repos/GaloisInc/ppaml-cp6/issues/8","labels_url":"https://api.github.com/repos/GaloisInc/ppaml-cp6/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/GaloisInc/ppaml-cp6/issues/8/comments","events_url":"https://api.github.com/repos/GaloisInc/ppaml-cp6/issues/8/events","html_url":"https://github.com/GaloisInc/ppaml-cp6/issues/8","id":114728967,"number":8,"title":"Index out of bounds running `run.sh`","user":{"login":"mhuesch","id":1151946,"avatar_url":"https://avatars.githubusercontent.com/u/1151946?v=3","gravatar_id":"","url":"https://api.github.com/users/mhuesch","html_url":"https://github.com/mhuesch","followers_url":"https://api.github.com/users/mhuesch/followers","following_url":"https://api.github.com/users/mhuesch/following{/other_user}","gists_url":"https://api.github.com/users/mhuesch/gists{/gist_id}","starred_url":"https://api.github.com/users/mhuesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhuesch/subscriptions","organizations_url":"https://api.github.com/users/mhuesch/orgs","repos_url":"https://api.github.com/users/mhuesch/repos","events_url":"https://api.github.com/users/mhuesch/events{/privacy}","received_events_url":"https://api.github.com/users/mhuesch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-11-03T02:26:44Z","updated_at":"2015-11-05T20:05:42Z","closed_at":null,"body":"Hi,\r\n\r\nI have been poking around trying to get `run.sh` working and encountered the following error:\r\n\r\n```\r\nAttempted to access model.pairs(:,1); index out of bounds because size(model.pairs)=[0,0].\r\n\r\nError in find_node2pair_arrays_ver2 (line 12)\r\nfor(c=1:length(model.pairs(:,1)))\r\n\r\nError in database_model (line 58)\r\n[model.N1, model.N2] = find_node2pair_arrays_ver2(model);%!!! Not sure what this is used for\r\n\r\nError in extract_marbl_model_data_files (line 56)\r\nmodel = database_model(1,length(data_locs),nvals, cliq_mat);%This is the format for the JGMT crf model, but this toolbox only handles pairwise cliques\r\n\r\nError in wrapper_crf_database_labeling_v2 (line 206)\r\n                extract_marbl_model_data_files(cliq_flags, ex_train_locs, TopN, img_info_list, ...\r\n\r\nError in run (line 63)\r\nevalin('caller', [script ';']);\r\n \r\n12  for(c=1:length(model.pairs(:,1)))\r\n```\r\n\r\nI followed the README instructions (I think), downloading the archive `CP5-ImageLabeling > evaluation > sandboxes > round-1-public-sandbox.tgz` from MIDAS. I downloaded marbl and swapped out the learn_CRF.cpp file. I modified `marbl_path` in crf_config_file.m to point to the marbl_master directory which contains the build artifacts. Is there something I'm missing?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/GaloisInc/ppaml-cp6/issues/comments/154174983","html_url":"https://github.com/GaloisInc/ppaml-cp6/issues/8#issuecomment-154174983","issue_url":"https://api.github.com/repos/GaloisInc/ppaml-cp6/issues/8","id":154174983,"user":{"login":"mhuesch","id":1151946,"avatar_url":"https://avatars.githubusercontent.com/u/1151946?v=3","gravatar_id":"","url":"https://api.github.com/users/mhuesch","html_url":"https://github.com/mhuesch","followers_url":"https://api.github.com/users/mhuesch/followers","following_url":"https://api.github.com/users/mhuesch/following{/other_user}","gists_url":"https://api.github.com/users/mhuesch/gists{/gist_id}","starred_url":"https://api.github.com/users/mhuesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhuesch/subscriptions","organizations_url":"https://api.github.com/users/mhuesch/orgs","repos_url":"https://api.github.com/users/mhuesch/repos","events_url":"https://api.github.com/users/mhuesch/events{/privacy}","received_events_url":"https://api.github.com/users/mhuesch/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T20:05:42Z","updated_at":"2015-11-05T20:05:42Z","body":"learn_CRF & infer_CRF seem to work\r\n\r\n```\r\n$ ../marbl-master/infer_CRF -h\r\nError! no model flag found! (-m)\r\nterminate called after throwing an instance of 'MyException'\r\n  what():  Error! no model flag found! (-m)\r\nAborted (core dumped)\r\n\r\n$ ../marbl-master/infer_CRF \r\nError! no model flag found! (-m)\r\nterminate called after throwing an instance of 'MyException'\r\n  what():  Error! no model flag found! (-m)\r\nAborted (core dumped)\r\n```\r\n\r\nI will try the crf_config branch. Thanks!"}}