kyamagu / matlab-bdb Goto Github PK
View Code? Open in Web Editor NEWPersistent key-value storage for matlab.
License: GNU Affero General Public License v3.0
Persistent key-value storage for matlab.
License: GNU Affero General Public License v3.0
input_sample = struct('image', imencode(input_image, 'jpg'));
result = feature_calculator.apply(config, input_sample)
[18-Feb-2016 15:12:27] Retrieving 25 nearest neighbors.
Hi, I run the paperdoll demo code, But in the past for a long time to no result,
Is there any solution to fix it ?
platforms are:
64 bit
Ubuntu 14.04
Matlab R2015B
Hi, i wanna parse an image using your project paper-doll parsing.
I'm having trouble compiling matlab-bdb in paper-doll parsing on ubunto 14.04 and matlab 2014a
this is the error
/tmp/mex_13959721201434_19551/libbdbmex.o: In function `bdbmex::Record::deserialize_mxarray(std::vector<unsigned char,
std::allocator<unsigned char> > const&, mxArray_tag**)':
libbdbmex.cc:(.text+0x1f9): undefined reference to `mxDeserialize'
/tmp/mex_13959721201434_19551/libbdbmex.o: In function `bdbmex::Record::decompress_mxarray(std::vector<unsigned char,
std::allocator<unsigned char> > const&, mxArray_tag**)':
libbdbmex.cc:(.text+0x2b6): undefined reference to `mxDeserialize'
/tmp/mex_13959721201434_19551/libbdbmex.o: In function `bdbmex::Record::serialize_mxarray(mxArray_tag const*,
std::vector<unsigned char, std::allocator<unsigned char> >*)':
libbdbmex.cc:(.text+0x95a): undefined reference to `mxSerialize'
/tmp/mex_13959721201434_19551/libbdbmex.o: In function `bdbmex::Record::compress_mxarray(mxArray_tag const*,
std::vector<unsigned char, std::allocator<unsigned char> >*)':
libbdbmex.cc:(.text+0xdbe): undefined reference to `mxSerialize'
collect2: error: ld returned 1 exit status
I need a help...
I need some help for running paperdoll.
When I run:
load data/paperdoll_pipeline.mat config;
input_image = imread('./fashionista/001.jpg');
input_sample = struct('image', imencode(input_image, 'jpg'));
result = feature_calculator.apply(config, input_sample); %error
The result comes:
[08-Jun-2015 21:12:03] Error:feature_calculator: 1 / 1
Error using mex_function_
Failed to open a database at data/paperdoll_exemplars.bdb: Invalid argument
Error in bdb.open (line 72)
id = mex_function_(mfilename, filename, varargin{:});
Error in softmask_transferer.apply>load_exemplars (line 83)
database_id = bdb.open(config.database_file);
Error in softmask_transferer.apply>process_sample (line 45)
[exemplars, labels] = load_exemplars(config, sample);
Error in softmask_transferer.apply (line 34)
[softmask_transfer, labels] = process_sample(config, sample);
Error in feature_calculator.apply (line 25)
sample = calculators{j}(config{j}, sample, varargin{:}, 'Encode', false);
It seems that these errors come from matlab-bdb.
I finally found that the error message comes from database_id = bdb.open(config.database_file, 'Rdonly', true, 'Create', false);
Is there any solution to fix it ?
While platforms are:
64 bit
ubuntu 12.04
Matlab R2012a
Hi, i wanna parse an image using your project paper-doll parsing.
I'm having trouble compiling GCO_BuildLib in paper-doll parsing on ubuntu 14.04 and matlab 2015a
this is the error info:
In GCO_BuildLib (line 67)
Warning: You are using gcc version '4.8.4-2ubuntu1~14.04)'. The version of gcc is not supported. The version currently
supported with MEX is '4.7.x'. For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release.
In GCO_BuildLib (line 67)
Error using mex
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:31:23: warning: ‘GCO_CLOCKS_PER_SEC’
initialized and declared ‘extern’ [enabled by default]
extern "C" gcoclock_t GCO_CLOCKS_PER_SEC = CLOCKS_PER_SEC;
^
In file included from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:109:0,
from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h: In instantiation of ‘int Energy<captype, tcaptype,
flowtype>::get_var(Energy<captype, tcaptype, flowtype>::Var) [with captype = int; tcaptype = int; flowtype = long long int;
Energy<captype, tcaptype, flowtype>::Var = int]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:197:20: required from here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:328:91: error: ‘what_segment’ was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
inline int Energy<captype,tcaptype,flowtype>::get_var(Var x) { return (int) what_segment(x); }
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:328:91: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:328:91: note: use ‘this->what_segment’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h: In instantiation of ‘void Energy<captype, tcaptype,
flowtype>::add_term1(Energy<captype, tcaptype, flowtype>::Var, Energy<captype, tcaptype, flowtype>::Value, Energy<captype,
tcaptype, flowtype>::Value) [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype,
flowtype>::Var = int; Energy<captype, tcaptype, flowtype>::Value = int]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:280:22: required from here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:207:22: error: ‘add_tweights’ was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, B, A);
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:207:22: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:207:22: note: use ‘this->add_tweights’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h: In instantiation of ‘void Energy<captype, tcaptype,
flowtype>::add_term2(Energy<captype, tcaptype, flowtype>::Var, Energy<captype, tcaptype, flowtype>::Var, Energy<captype,
tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value,
Energy<captype, tcaptype, flowtype>::Value) [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype,
tcaptype, flowtype>::Var = int; Energy<captype, tcaptype, flowtype>::Value = int]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:304:42: required from here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:220:22: error: ‘add_tweights’ was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, D, A);
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:220:22: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:220:22: note: use ‘this->add_tweights’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:235:23: error: ‘add_tweights’ was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, 0, B); /* first term */
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:235:23: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:235:23: note: use ‘this->add_tweights’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:236:24: error: ‘add_tweights’ was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(y, 0, -B); /* second term */
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:236:24: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:236:24: note: use ‘this->add_tweights’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:237:24: error: ‘add_edge’ was not declared in this scope,
and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_edge(x, y, 0, B+C); /* third term */
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:237:24: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:237:24: note: use ‘this->add_edge’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:245:24: error: ‘add_tweights’ was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, 0, -C); /* first term */
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:245:24: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:245:24: note: use ‘this->add_tweights’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:246:23: error: ‘add_tweights’ was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(y, 0, C); /* second term */
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:246:23: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:246:23: note: use ‘this->add_tweights’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:247:24: error: ‘add_edge’ was not declared in this scope,
and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_edge(x, y, B+C, 0); /* third term */
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:247:24: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:247:24: note: use ‘this->add_edge’ instead
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:251:22: error: ‘add_edge’ was not declared in this scope,
and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_edge(x, y, B, C);
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:251:22: note: declarations in dependent base ‘Graph<int,
int, long long int>’ are not found by unqualified lookup
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:251:22: note: use ‘this->add_edge’ instead
In file included from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:110:0,
from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp: In instantiation of ‘Graph<captype, tcaptype,
flowtype>::Graph(int, int, void ()(char)) [with captype = int; tcaptype = int; flowtype = long long int]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:187:189: required from ‘Energy<captype, tcaptype,
flowtype>::Energy(int, int, void ()(char)) [with captype = int; tcaptype = int; flowtype = long long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1230:33: required from here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp:21:83: warning: deprecated conversion from string constant
to ‘char_’ [-Wwrite-strings]
if (!nodes || !arcs) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }
^
In file included from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:111:0,
from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp: In instantiation of ‘flowtype Graph<captype, tcaptype,
flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:325:33: required from ‘Energy<captype, tcaptype,
flowtype>::TotalValue Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long
long int; Energy<captype, tcaptype, flowtype>::TotalValue = long long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1237:37: required from here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:484:145: warning: deprecated conversion from string
constant to ‘char’ [-Wwrite-strings]
if (maxflow_iteration == 0 && reuse_trees) { if (error_function) (*error_function)("reuse_trees cannot be used in the first
call to maxflow()!"); exit(1); }
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:485:126: warning: deprecated conversion from string
constant to ‘char_’ [-Wwrite-strings]
if (changed_list && !reuse_trees) { if (error_function) (_error_function)("changed_list cannot be used without
reuse_trees!"); exit(1); }
^
In
file
included
from
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:110:0,
from
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp:
In
instantiation
of
‘void
Graph<captype,
tcaptype,
flowtype>::reallocate_nodes(int)
[with
captype
=
int;
tcaptype
=
int;
flowtype
=
long
long
int]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/graph.h:364:54:
required
from
‘Graph<captype,
tcaptype,
flowtype>::node_id
Graph<captype,
tcaptype,
flowtype>::add_node(int)
[with
captype
=
int;
tcaptype
=
int;
flowtype
=
long
long
int;
Graph<captype,
tcaptype,
flowtype>::node_id
=
int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:198:30:
required
from
‘Energy<captype,
tcaptype,
flowtype>::Var
Energy<captype,
tcaptype,
flowtype>::add_variable(int)
[with
captype
=
int;
tcaptype
=
int;
flowtype
=
long
long
int;
Energy<captype,
tcaptype,
flowtype>::Var
=
int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1140:31:
required
from
here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp:70:74:
warning:
deprecated
conversion
from
string
constant
to
‘char*’
[-Wwrite-strings]
if
(!nodes)
{
if
(error_function)
(*error_function)("Not
enough
memory!");
exit(1);
}
^
In file included from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/graph.h:43:0,
from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:77,
from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:109,
from /home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/block.h: In instantiation of ‘Type* Block::New(int) [with
Type = int]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:110:36: required from ‘void Graph<captype, tcaptype,
flowtype>::add_to_changed_list(Graph<captype, tcaptype, flowtype>::node_) [with captype = int; tcaptype = int; flowtype = long
long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:520:27: required from ‘flowtype Graph<captype,
tcaptype, flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:325:33: required from ‘Energy<captype, tcaptype,
flowtype>::TotalValue Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long
long int; Energy<captype, tcaptype, flowtype>::TotalValue = long long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1237:37: required from here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/block.h:124:76: warning: deprecated conversion from string constant
to ‘char’ [-Wwrite-strings]
if (!next) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }
^
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/block.h: In instantiation of ‘Type* DBlock::New() [with Type
= Graph<int, int, long long int>::nodeptr]’:
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:95:5: required from ‘void Graph<captype, tcaptype,
flowtype>::set_orphan_rear(Graph<captype, tcaptype, flowtype>::node_) [with captype = int; tcaptype = int; flowtype = long
long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:183:36: required from ‘void Graph<captype, tcaptype,
flowtype>::maxflow_reuse_trees_init() [with captype = int; tcaptype = int; flowtype = long long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:487:44: required from ‘flowtype Graph<captype,
tcaptype, flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:325:33: required from ‘Energy<captype, tcaptype,
flowtype>::TotalValue Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long
long int; Energy<captype, tcaptype, flowtype>::TotalValue = long long int]’
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1237:37: required from here
/home/boajianmin/research/paperdoll-v1.0/lib/gco-v3.0/src/block.h:223:76: warning: deprecated conversion from string constant
to ‘char’ [-Wwrite-strings]
if (!first) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }
Error in GCO_BuildLib (line 67)
eval(mexcmd); % compile and link in one step
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.