Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset Generating Code #1

Open
wine3603 opened this issue Jan 16, 2020 · 10 comments
Open

Dataset Generating Code #1

wine3603 opened this issue Jan 16, 2020 · 10 comments

Comments

@wine3603
Copy link

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?

@williamljb
Copy link
Owner

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.

@wine3603
Copy link
Author

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 ?

@williamljb
Copy link
Owner

williamljb commented Jan 17, 2020

Hi wine3603,

It seems to be a bash failure due to incomplete downloads. Here is a relevant post: Ultimaker/cura-build#221 (comment)

@wine3603
Copy link
Author

wine3603 commented Apr 1, 2020

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?

@williamljb
Copy link
Owner

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.

@wine3603
Copy link
Author

wine3603 commented Apr 2, 2020

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....

@williamljb
Copy link
Owner

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'.

@wine3603
Copy link
Author

wine3603 commented Apr 3, 2020

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....

@williamljb
Copy link
Owner

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

@FishWoWater
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants