chongyi-zheng / smplpp Goto Github PK
View Code? Open in Web Editor NEWC++ Implementation of SMPL: A Skinned Multi-Person Linear Model
License: MIT License
C++ Implementation of SMPL: A Skinned Multi-Person Linear Model
License: MIT License
like this
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: note: in definition of macro ‘smpl_error’
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:154:5: note: initializing argument 4 of ‘xt::smpl::Exception::Exception(int, int, int, int, int)’
Exception(const std::string module, const std::string error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~~~~~~~~~~~~~~~~~~
func, FILE, LINE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: note: in definition of macro ‘smpl_error’
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:154:5: note: initializing argument 1 of ‘xt::smpl::Exception::Exception(int, int, int, int, int)’
Exception(const std::string module, const std::string error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~~~~~~~~~~~~~~~~~~
func, FILE, LINE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: note: in definition of macro ‘smpl_error’
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~
I have run the smplpp on windows platform with vs2019. And the smplpp takes 20ms for a new pose on my notebook.
However, when I tested the official python code on windows with python2.7, they spent less than 10s for a new pose.
Could you please tell me the performance on your side? Either Linux or Windows. Thanks.
Does the code contain data sets and training procedures?
Does this help?
https://github.com/intel-isl/Open3D
./smplpp
[json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: 'v'
sizes() called on undefined Tensor (sizes at /pytorch/c10/core/UndefinedTensorImpl.cpp:12)
frame #0: std::function<std::string ()>::operator()() const + 0x11 (0x7f64538a2441 in /usr/local/lib/libc10.so)
frame #1: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x2a (0x7f64538a1d7a in /usr/local/lib/libc10.so)
frame #2: c10::UndefinedTensorImpl::sizes() const + 0x6f (0x7f645389b62f in /usr/local/lib/libc10.so)
frame #3: at::Tensor::sizes() const + 0x27 (0x4e54b9 in ./smplpp)
frame #4: smpl::LinearBlendSkinning::getVertex() + 0x8e (0x4f0848 in ./smplpp)
frame #5: smpl::SMPL::out(long) + 0x6a (0x4f68d8 in ./smplpp)
frame #6: main + 0x4ce (0x4d396e in ./smplpp)
frame #7: __libc_start_main + 0xf0 (0x7f640f99d830 in /lib/x86_64-linux-gnu/libc.so.6)
frame #8: _start + 0x29 (0x4d2729 in ./smplpp)
After successfully compiling your code, this is what I got..
In "main.cpp", this program is supposed to get the hard-coded json file.
When I opened the input file, I wonder if there's anything wrong in the input json file.
Question: I have encountered the error when compiling the project by cmake tools.
Run Build Command:"/usr/bin/make" "cmTC_c29db/fast"
/usr/bin/make -f CMakeFiles/cmTC_c29db.dir/build.make CMakeFiles/cmTC_c29db.dir/build
make[1]: Entering directory '/home/ubuntu/Downloads/SMPLpp-master/SMPL++/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c29db.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_c29db.dir/CheckSymbolExists.c.o -c /home/ubuntu/Downloads/SMPLpp-master/SMPL++/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_c29db
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c29db.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_c29db.dir/CheckSymbolExists.c.o -o cmTC_c29db
CMakeFiles/cmTC_c29db.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text+0x16): undefined reference to
pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_c29db.dir/build.make:97: recipe for target 'cmTC_c29db' failed
make[1]: *** [cmTC_c29db] Error 1
make[1]: Leaving directory '/home/ubuntu/Downloads/SMPLpp-master/SMPL++/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_c29db/fast' failed
make: *** [cmTC_c29db/fast] Error 2
File /home/ubuntu/Downloads/SMPLpp-master/SMPL++/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/ubuntu/Downloads/SMPLpp-master/SMPL++/build/CMakeFiles/CMakeTmp
I know this isn't the most appropriate place to put this, but I struggled with this for a while and wanted to help anyone go through with it.
:
/usr/local/include/xtensor/xutils.hpp:629:51: error: ‘has_trivial_default_constructor’ in namespace ‘std’ does not name a template type
using xtrivially_default_constructible = std::has_trivial_default_constructor;
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.