-
Notifications
You must be signed in to change notification settings - Fork 0
/
help_summary.txt
74 lines (44 loc) · 2.04 KB
/
help_summary.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
PhotographicImageSynthesis
Images in /cityscapes/Label256Full/ is in size 512*256*3
g++ -g -Wall -I .../ library **.cpp -o ***
piotrdollar_toolbox_mex_help
The folder "edges" can be run on MATLAB 2017B UBUNTU 16.04.3
lsb_release -a : check version of UBUNTU
1. Download toolbox https://github.com/pdollar/toolbox , compile by ">>toolboxCompile;"
2. Compile: mex private/e*.cpp -outdir private '-DUSEOMP' CFLAGS="\$CFLAGS -fopenmp" LDFLAGS="\$LDFLAGS -fopenmp"
Change int to mwSize in all *.cpp files
e.g. edgesDetectMex.cpp
Error: cannot convert 'const int*' to 'const size_t*'; requested 54329384 * 11234123 (17**.GB)array exceeds maximum array size preference. See array size limit or preference panel for more information.
Reason: the argument should be type size_t*, but be int*
Solution: int -> mwSize
details:
Line 74, 78, 83,84, 87,88,89 type const int -> const mwSize
Then compile:
mex private/edgesDetectMex.cpp -outdir private '-DUSEOMP' CFLAGS="\$CFLAGS -fopenmp" LDFLAGS="\$LDFLAGS -fopenmp"
Another example: spDetectMex.cpp line 324 const int dims[3] -> const mwSize dims[3]
To use the toolbox, addpath(genpath('./toolbox/')); savepath;
Error: invalid mex-file Function mexFunction is missing
Reason: "mexFunction" or the parameters may be incorrect, make sure
Void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
Jupyter notebook cannot recognize tensorflow
Solution:
conda install -c bioconda bcbio-nextgen
bcbio_conda install c condo-forge libsodium
Update tensor flow:
Conda update -f -c condo-forge tensorflow
Install panda3d GitHub:/panda3d/panda3d
Pip show tensorflow
Install from tensorflow from source
Installation of Open MPI
https://www.open-mpi.org/software/ompi/v2.0/
> tar xf openmpi-2.0.2.tar
> cd openmpi-2.0.2/
> ./configure --prefix=$HOME/opt/usr/local
> make all
> make install
> $HOME/opt/usr/local/bin/mpirun --version
mpirun (Open MPI) 2.0.2
$HOME/opt/usr/local/bin/mpicc -o hello ./hello.c
$HOME/opt/usr/local/bin/mpirun -np 2 ./hello
Hello: rank 0, world: 2
Hello: rank 1, world: 2