differentiablecloth's People
Forkers
lwkobe hpp340 jamesli1618 peterzs peterzhousz fwzhuang lnnx2006 gsygsy96 jxw-tmp royvelich cock-puncher will1996 whztt07 hjyu94differentiablecloth's Issues
GPU/CPU parallelization
Hello,
Thanks for sharing this project and releasing the code. This is really cool work!
In demo_{}.py examples, I noticed that PyTorch threads are set for CPU parallelization using torch.set_num_threads(8). However, I fail to see any performance speed-up/degradation when the number of threads is varied (I tried with num_threads = 1, 2, 4, 8). I am running against a server with 64 physical (or 256 logical) CPUs available. Are the forward and backward pass both expected to benefit from multi-threading (say 8 cpu vs. 1 cpu)?
On another note, is CUDA used in the project or experimental? All the tensors seem to be loaded in CPU device, it's not clear to me if GPUs are actually leveraged in C++/PyTorch parts of the source code.
I am working with high resolution meshes, so looking for ways to train the experiments as faster as possible.
/usr/bin/ld: final link failed: bad value
Hi, I have successfully dependencies file but when I "make" in main dir, I got the error like this:
building 'arcsim' extension
Emitting ninja build file /home/yizhouch/Downloads/DifferentiableCloth/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/yizhouch/Downloads/DifferentiableCloth/build/temp.linux-x86_64-3.8/pybind/bind.o -Lobjs -L./arcsim/dependencies/lib -L/home/yizhouch/.local/lib/python3.8/site-packages/torch/lib -lmake_pytorch -ljson -ltaucs -lalglib -lpng -lz -llapack -lblas -lboost_system -lboost_filesystem -lboost_thread -lgomp -lglut -lGLU -lGL -lGLdispatch -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-3.8/arcsim.cpython-38-x86_64-linux-gnu.so
/usr/bin/ld: ./arcsim/dependencies/lib/libjson.a(json_reader.o): relocation R_X86_64_PC32 against symbol `_ZN4Json5Value6minIntE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
make: *** [Makefile:65: all] Error 1
Compilation failure
Hi,
First, thanks for sharing your project.
I run into a problem when trying to compile the project. When I try to build the dependencies, I get the following error while attempting to build TAUCS:
Am I missing a dependency? (did I have to install cilk
?)
I just want to mention that I run Ubuntu 20.04 with GCC9.
Which Ubuntu/GCC do you use to build the project?
Thanks
Possibilty of controling cloth by external force?
Hi Junbang, I have a question regarding the Motion Control demo.
I notice that you express control forces as additional velocity very step. I'm wondering is there any other ways to express force in this simulator like directly using force to control.
I briefly look through the bind.cpp
API, and I find no such function that can enable me to do so.
Compile Error
I encounter an error when I make in the {root}
directory:
fatal error: torch/extension.h: No such file or directory #include <torch/extension.h>
I saw other issues reporting the same error, and I know that I should download the zip file from https://pytorch.org/cppdocs/installing.html. But after I unzip it, I don't know what I should do next to pass the compile. I try many things but failed.
Can you give me some insturctions?
Beg for your reply!
Thanks!
compile failure
when I cd arcsim/dependencies and make,I got the error as follows:
make
cd jsoncpp && /scratch0/scons/bin/scons platform=linux-gcc
/bin/sh: 1: /scratch0/scons/bin/scons: not found
Makefile:12: recipe for target 'lib/libjson.a' failed
make: *** [lib/libjson.a] Error 127
Material estimation experiment
I have a question regarding the material estimation experiment. Did you obtain the observation from the original ArcSim simulator or this differentiable simulator?
In addition, I realize there is some difference between the implementation ArcSim and this one. For example, this simulator does not run relax_initial_state
during the initialization. Is there a brief description of what has been changed, besides the apparent fact that this one is using torch::Tensor and has gradient computation?
Thanks.
compile problem
when I do the second make
in the root directory, the error occurs:
arcsim/src/util.hpp: At global scope:
arcsim/src/vectors.hpp:56:58: error: expected ‘)’ before ‘*’ token
#define infinity (std::numeric_limits<double>::infinity()*ONE)
^
arcsim/src/util.hpp:64:21: note: in expansion of macro ‘infinity’
extern const Tensor infinity;
^
arcsim/src/vectors.hpp:52:28: error: expected unqualified-id before ‘,’ token
#define ONE (torch::ones({}, TNOPT))
^
arcsim/src/vectors.hpp:56:59: note: in expansion of macro ‘ONE’
#define infinity (std::numeric_limits<double>::infinity()*ONE)
^
arcsim/src/util.hpp:64:21: note: in expansion of macro ‘infinity’
extern const Tensor infinity;
^
arcsim/src/vectors.hpp:52:35: error: expected constructor, destructor, or type conversion before ‘)’ token
#define ONE (torch::ones({}, TNOPT))
Possibility of supporting per-frame obstacle
Thanks for this awesome project and release of the code. I am new to simulation and I am wondering whether this simulator supports per-frame obstacles, a sequence of meshes generated from linear blend skinning. I briefly studied the configuration interface, and it seems to me that this is not easily achievable. I would appreciate it if the author can provide some insight.
Compile error
When I run demo_gravity, I encounter error below:
Traceback (most recent call last):
File "demo_gravity.py", line 2, in
import arcsim
ImportError: /home/siheng/miniconda3/envs/diffcloth/lib/python3.6/site-packages/arcsim-0.0.0-py3.6-linux-x86_64.egg/arcsim.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN3c1021AutogradMetaInterfaceE
My platform is Ubuntu20.04 and I my gcc/g++ version is both 8.4.0.
Compile Problem
compile failure
/home/zitman/anaconda3/envs/phi_sft/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 | #pragma omp parallel for if ((end - begin) >= grain_size) | /home/zitman/DifferentiableCloth-master/pybind/bind.cpp:4:10: fatal error: collision.hpp: no such file or directory 4 | #include "collision.hpp" | ^~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/zitman/anaconda3/envs/phi_sft/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build env=env) File "/home/zitman/anaconda3/envs/phi_sft/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
I searched the source file collision.hpp to find this problem, but an error will be reported when compiling
Compile Problem
When I try to make the project, there is an error:
/usr/bin/ld: ./arcsim/dependencies/lib/libtaucs.a(taucs_linsolve.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
./arcsim/dependencies/lib/libtaucs.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
I try to change the Makefile in /dependencies/ like
cd taucs &&./configure --cc="gcc -m6 -fPIC" --enable-shared module=!METIS && $(MAKE)
but it not works.
What should I do to solve the problem?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.