akanazawa / Topic-Random-Field

Implementation of "Image Segementation with Topic Random Field" by Zhao, Fei-fei, and Xing.
8 stars 12 forks source link

How to run the topic random field? #3

Open sara-eb opened 6 years ago

sara-eb commented 6 years ago

Hi I am trying to run the code, however, I do not know which steps and which function I should start with? I want to run TRF on my own data, however, the data format is

the data is a cell array of fields:
%           img: [H x W x 3 uint8]
%        labels: [H x W  double]
%         segs2: [H x W  double]
%         feat2: [Nd x M double]
%     segLabels: [Nd x 1 double]
%           adj: [Nd x Nd logical]
%            vq: [Nd x L ] 
% Where Nd is the number of regions for data d, M is the number of
% features, L is the length of the code book.

Do you have the code of conversion to this format? Your help is really appreciated.