zhouxian / fluidlab Goto Github PK
View Code? Open in Web Editor NEW[ICLR 2023] FluidLab: A Differentiable Environment for Benchmarking Complex Fluid Manipulation
[ICLR 2023] FluidLab: A Differentiable Environment for Benchmarking Complex Fluid Manipulation
Specifically, when I run python fluidlab/run.py --cfg_file configs/exp_gathering_easy.yaml --record
it reports:
aceback (most recent call last): File "fluidlab/run.py", line 63, in <module> main() File "fluidlab/run.py", line 41, in main env = gym.make(cfg.EXP.env_name, seed=cfg.EXP.seed, loss=False, loss_type='diff', renderer_type=args.renderer_type) File "C:\Users\Shipe\miniconda3\envs\fluidlab\lib\site-packages\gym\envs\registration.py", line 200, in make return registry.make(id, **kwargs) File "C:\Users\Shipe\miniconda3\envs\fluidlab\lib\site-packages\gym\envs\registration.py", line 105, in make env = spec.make(**kwargs) File "C:\Users\Shipe\miniconda3\envs\fluidlab\lib\site-packages\gym\envs\registration.py", line 75, in make env = cls(**_kwargs) File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\envs\gatheringeasy_env.py", line 35, in __init__ self.build_env() File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\envs\fluid_env.py", line 38, in build_env self.setup_bodies() File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\envs\gatheringeasy_env.py", line 69, in setup_bodies material=RIGID, File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\fluidengine\taichi_env.py", line 93, in add_body self.particle_bodies.add_body(**kwargs) File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\fluidengine\bodies\bodies.py", line 40, in add_body self.add_mesh(filling=filling, **kwargs) File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\fluidengine\bodies\bodies.py", line 199, in add_mesh voxels = pkl.load(open(voxelized_file_path, 'rb')) AttributeError: 'TrackedArray' object has no attribute 'fast_hash'
.
When I run:
python fluidlab/run.py --cfg_file configs/exp_mixing.yaml --record
Traceback (most recent call last):
File "fluidlab/run.py", line 63, in <module> main() File "fluidlab/run.py", line 44, in main record_target(env, path=args.path, user_input=args.user_input) File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\optimizer\recorder.py", line 107, in record_target recorder.record(user_input) File "c:\users\shipe\dropbox\myworkspace\fluidlab\fluidlab\optimizer\recorder.py", line 16, in record policy = self.env.demo_policy(user_input) TypeError: demo_policy() takes 1 positional argument but 2 were given.
There are some other issues with renderred_type, but I assume that following the latter_art.env, we could solve this~
Is there a plan to have documentation about how to generate the paper results?
Best,
Shipeng
I am trying to run fluidlab on a remote pc. As such, I am trying to save the frames generated using the save variable in fluidlab.optimizer.recorder.py. However, I am running into an issue regarding the display:
(fluidlab) cewang@blackcoffee:~/FluidLab_SLURM$ python fluidlab/run.py --cfg_file configs/exp_latteart.yaml --record --renderer_type GL
[Taichi] version 1.1.0, llvm 10.0.0, commit f5bb6464, linux, python 3.7.13
[Taichi] Starting on arch=cuda
===> TaichiEnv created.
===> 60000 particles of milk nowhere added.
===> 55480 particles of coffee cylinder added.
===> LatteArtEnv built successfully.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/cewang/miniconda3/envs/fluidlab/lib/python3.7/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
Aborted (core dumped)
I am wondering if there is a headless mode where I can bypass the cv2.imshow, or will I have to implement it myself. Thank you!
Hi, I'm trying to run the example in the readme file. It is however complaining about no vulkan for ggui. I'm wondering if Taichi requires this for visualization. It would be helpful if some instructions could be added here :)
Hi, I made a 3D model of a jug (.obj), put it into asset/raw and I am using it as an end-effector(agent).
However, I found that the volume of the liquid is shirinking during the simulation. I guess it is not just the decreasing gap between particles, as it does not happen with a provided cup model.
Do you have any advice or is there any stable way to build a 3D model for Fluidlab?
Naoki
↓Jug model
https://drive.google.com/file/d/1OWJ7BJ89PibEVCNEccZ5W9uMH42RTgvO/view?usp=sharing
↓Video
https://youtu.be/-F7hzCmXxzI
Hi! Thanks for your great work!
I am wondering whether the camera ready version will be released?
Hello! I followed all the installation instructions(except GLRenderer) and faced the following error message while trying Let's Rock first step.
File "fluidlab/run.py", line 10, in <module>
from fluidlab.optimizer.solver import solve_policy
File "/home/sungho/FluidLab/fluidlab/optimizer/__init__.py", line 1, in <module>
from .solver import Solver
File "/home/sungho/FluidLab/fluidlab/optimizer/solver.py", line 7, in <module>
from fluidlab.fluidengine.taichi_env import TaichiEnv
File "/home/sungho/FluidLab/fluidlab/fluidengine/taichi_env.py", line 7, in <module>
from fluidlab.fluidengine.renderers import *
File "/home/sungho/FluidLab/fluidlab/fluidengine/renderers/__init__.py", line 4, in <module>
from .gl_renderer import GLRenderer
File "/home/sungho/FluidLab/fluidlab/fluidengine/renderers/gl_renderer.py", line 10, in <module>
from .gl_renderer_src import flex_renderer
ImportError: cannot import name 'flex_renderer' from 'fluidlab.fluidengine.renderers.gl_renderer_src' (unknown location)
Could you take a look into this?``
Hello! I followed all the installation instructions(except GLRenderer) and faced the following error message while trying Let's Rock first step.
"""
File "fluidlab/run.py", line 10, in
from fluidlab.optimizer.solver import solve_policy
File "/home/sungho/FluidLab/fluidlab/optimizer/init.py", line 1, in
from .solver import Solver
File "/home/sungho/FluidLab/fluidlab/optimizer/solver.py", line 7, in
from fluidlab.fluidengine.taichi_env import TaichiEnv
File "/home/sungho/FluidLab/fluidlab/fluidengine/taichi_env.py", line 7, in
from fluidlab.fluidengine.renderers import *
File "/home/sungho/FluidLab/fluidlab/fluidengine/renderers/init.py", line 4, in
from .gl_renderer import GLRenderer
File "/home/sungho/FluidLab/fluidlab/fluidengine/renderers/gl_renderer.py", line 10, in
from .gl_renderer_src import flex_renderer
ImportError: cannot import name 'flex_renderer' from 'fluidlab.fluidengine.renderers.gl_renderer_src' (unknown location)
"""
Could you take a look into this?
[internal] load metadata for docker.io/nvidia/cuda:9.2-devel-ubuntu18.04:
ERROR: failed to solve: nvidia/cuda:9.2-devel-ubuntu18.04: docker.io/nvidia/cuda:9.2-devel-ubuntu18.04: not found
Unable to find image 'fluidlab-glrenderer:latest' locally
docker: Error response from daemon: pull access denied for fluidlab-glrenderer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
.: datei oder Verzeichnis nicht gefunden: /home/{username}/anaconda3/bin/activate
.: datei oder Verzeichnis nicht gefunden: prepare.sh
.: datei oder Verzeichnis nicht gefunden: compile.sh
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.