HumanMultiView icon indicating copy to clipboard operation
HumanMultiView copied to clipboard

Dataset Generating Code

Open wine3603 opened this issue 6 years ago • 10 comments

Nice work, I downloaded your dataset, the data generator codes as well, but there are no readme files to explain what is the generator do and how to use it. could you please explain a litter more about what and how is your dataset generator do?

wine3603 avatar Jan 16 '20 08:01 wine3603

Hi wine3603,

Thanks for your interest! The generator is to provide code that generates the dataset. Below are some rough steps.

  1. Export pose and shape params from Moshed CMU datasets.
  2. Generate the body motion (in meshes) at each frame using SMPL.
  3. Use Arcsim to simulate the cloth motion (I used arcsim/conf/karate.json and arcsim/conf/dress.json), if the simulation failed, make sure the clothes are correctly registered on the body at time 0.
  4. Use Blender to render the results. Please refer to render/run_blender.sh and other related code for specific instructions.
  5. After completion of the rendering, use src_ortho/datasets/synthetic_to_tfrecords.py to generate the tfrecords that can be read by the learning code.

williamljb avatar Jan 17 '20 03:01 williamljb

Hey, man, thanks for your quick reply! I tried to build the dataset codes, but there are bugs in the Makefile of the arcsim/dependence/

cd arcsim/dependencies
$ make
lib/libalglib.a lib/libjson.a lib/libtaucs.a
lib/libalglib.a: 2: lib/libalglib.a: Syntax error: newline unexpected
Makefile:4: recipe for target 'all' failed 

could you please help me to figure it out ?

wine3603 avatar Jan 17 '20 05:01 wine3603

Hi wine3603,

It seems to be a bash failure due to incomplete downloads. Here is a relevant post: https://github.com/Ultimaker/cura-build/issues/221#issuecomment-520835019

williamljb avatar Jan 17 '20 19:01 williamljb

hi man, now I can make the dependences, but the next "make" I got these:

HumanMultiView/Dataset/data_generation/arcsim$ make
g++ build/release/auglag.o build/release/bah.o build/release/bvh.o build/release/cloth.o build/release/collision.o build/release/collisionutil.o build/release/conf.o build/release/constraint.o build/release/dde.o build/release/display.o build/release/displayphysics.o build/release/displayreplay.o build/release/displaytesting.o build/release/dynamicremesh.o build/release/geometry.o build/release/handle.o build/release/io.o build/release/lbfgs.o build/release/lsnewton.o build/release/magic.o build/release/main.o build/release/mesh.o build/release/misc.o build/release/morph.o build/release/mot_parser.o build/release/nearobs.o build/release/nlcg.o build/release/obstacle.o build/release/physics.o build/release/popfilter.o build/release/plasticity.o build/release/proximity.o build/release/remesh.o build/release/runphysics.o build/release/separate.o build/release/separateobs.o build/release/simulation.o build/release/spline.o build/release/strainlimiting.o build/release/taucs.o build/release/tensormax.o build/release/timer.o build/release/transformation.o build/release/trustregion.o build/release/util.o build/release/vectors.o build/release/refinemesh.o -o bin/arcsim -L/usr/lib64 -Ldependencies/lib -L/usr/lib64/atlas -lpng -lz -ltaucs -llapack -ltatlas -lsatlas -lgslcblas -lboost_filesystem -lboost_filesystem-mt -lboost_system-mt -lboost_thread-mt -ljson -lgomp -lalglib -lglut -lGLU -lGL 
/usr/bin/ld: cannot find -ltatlas
/usr/bin/ld: cannot find -lsatlas
/usr/bin/ld: cannot find -lgslcblas
/usr/bin/ld: cannot find -lboost_filesystem-mt
/usr/bin/ld: cannot find -lboost_system-mt
/usr/bin/ld: cannot find -lboost_thread-mt
collect2: error: ld returned 1 exit status
Makefile:79: recipe for target 'bin/arcsim' failed
make: *** [bin/arcsim] Error 1

I'm pretty sure I have atlas and boost installed and I tried all the ways I can to find the atlas pkg but stll get this error.... my system is ubuntu 1604, can you help me?

wine3603 avatar Apr 01 '20 08:04 wine3603

Hi wine3603,

The command is using the following directories to find the libraries: -L/usr/lib64 -Ldependencies/lib -L/usr/lib64/atlas

Are your libraries located in /usr/lib64 or /usr/lib64/atlas? If not, you will need to adjust it accordingly.

williamljb avatar Apr 01 '20 14:04 williamljb

Thanks for the quick reply! @williamljb

$ locate libatlas
/usr/lib/libatlas.a
/usr/lib/libatlas.so
/usr/lib/libatlas.so.3
/usr/lib/atlas-base/libatlas.a
/usr/lib/atlas-base/libatlas.so
/usr/lib/atlas-base/libatlas.so.3
/usr/lib/atlas-base/libatlas.so.3.0
/usr/share/doc/libatlas-base-dev
/usr/share/doc/libatlas-dev
/usr/share/doc/libatlas3-base
/usr/share/doc/libatlas-base-dev/README
/usr/share/doc/libatlas-base-dev/changelog.Debian.gz
/usr/share/doc/libatlas-base-dev/copyright
/usr/share/doc/libatlas-dev/README
/usr/share/doc/libatlas-dev/changelog.Debian.gz
/usr/share/doc/libatlas-dev/copyright
/usr/share/doc/libatlas3-base/README
/usr/share/doc/libatlas3-base/README.Debian
/usr/share/doc/libatlas3-base/TODO.Debian
/usr/share/doc/libatlas3-base/changelog.Debian.gz
/usr/share/doc/libatlas3-base/copyright
/var/lib/dpkg/info/libatlas-base-dev.list
/var/lib/dpkg/info/libatlas-base-dev.md5sums
/var/lib/dpkg/info/libatlas-base-dev.postinst
/var/lib/dpkg/info/libatlas-base-dev.preinst
/var/lib/dpkg/info/libatlas-base-dev.prerm
/var/lib/dpkg/info/libatlas-dev.list
/var/lib/dpkg/info/libatlas-dev.md5sums
/var/lib/dpkg/info/libatlas3-base.list
/var/lib/dpkg/info/libatlas3-base.md5sums
/var/lib/dpkg/info/libatlas3-base.postinst
/var/lib/dpkg/info/libatlas3-base.preinst
/var/lib/dpkg/info/libatlas3-base.prerm
/var/lib/dpkg/info/libatlas3-base.shlibs
/var/lib/dpkg/info/libatlas3-base.triggers

I think libatlas is in my /usr/lib/, I modefied your Makefile to be -L/usr/lib -Ldependencies/lib -L/usr/lib/atlas but the error remains....

wine3603 avatar Apr 02 '20 03:04 wine3603

Try replacing '-ltatlas -lsatlas' with '-latlas'. I remembered Atlas has many different versions with many different library names. Basically, the '-l$name' matches the libraries named with 'lib$name.so'.

williamljb avatar Apr 02 '20 16:04 williamljb

New Bug:

make
g++ build/release/auglag.o build/release/bah.o build/release/bvh.o build/release/cloth.o build/release/collision.o build/release/collisionutil.o build/release/conf.o build/release/constraint.o build/release/dde.o build/release/display.o build/release/displayphysics.o build/release/displayreplay.o build/release/displaytesting.o build/release/dynamicremesh.o build/release/geometry.o build/release/handle.o build/release/io.o build/release/lbfgs.o build/release/lsnewton.o build/release/magic.o build/release/main.o build/release/mesh.o build/release/misc.o build/release/morph.o build/release/mot_parser.o build/release/nearobs.o build/release/nlcg.o build/release/obstacle.o build/release/physics.o build/release/popfilter.o build/release/plasticity.o build/release/proximity.o build/release/remesh.o build/release/runphysics.o build/release/separate.o build/release/separateobs.o build/release/simulation.o build/release/spline.o build/release/strainlimiting.o build/release/taucs.o build/release/tensormax.o build/release/timer.o build/release/transformation.o build/release/trustregion.o build/release/util.o build/release/vectors.o build/release/refinemesh.o -o bin/arcsim -L/usr/lib/x86_64-linux-gnu -Ldependencies/lib -L/usr/lib/ -lpng -lz -ltaucs -llapack -latlas -lgslcblas -lboost_filesystem -lboost_filesystem -lboost_system -lboost_thread -ljson -lgomp -lalglib -lglut -lGLU -lGL 
/usr/bin/ld: dependencies/lib/libtaucs.a(taucs_ccs_ooc_llt_C.o): undefined reference to symbol 'cgemm_'
//usr/lib/libopenblas.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:79: recipe for target 'bin/arcsim' failed
make: *** [bin/arcsim] Error 1

BTW, in arcsim/dependencies/make, it says make: Nothing to be done for 'all'. Is this right? I think maybe something wrong in the dependence makefile as well....

wine3603 avatar Apr 03 '20 09:04 wine3603

You will probably need to recompile the dependencies. Try 'make clean' and then 'make' in the dependency directory.

williamljb avatar Apr 03 '20 18:04 williamljb

It seems that your modified version does not support SMPL forward kinematics, it stills uses puppet model as vanilla arcsim, right?

FishWoWater avatar Apr 13 '22 14:04 FishWoWater