Giter VIP home page Giter VIP logo

fluidlab's People

Contributors

zhouxian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fluidlab's Issues

encounter issues when I run other yml files

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

Headless mode option

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!

Does the codebase need vulkan?

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 :)

Volume of the liquid decrease

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

Camera ready version

Hi! Thanks for your great work!

I am wondering whether the camera ready version will be released?

Let's Rock Example Error

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?``

Let's Rock Example Error

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?

Uncapabe of finding the required files

=> => transferring dockerfile: 785B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> ERROR [internal] load metadata for docker.io/nvidia/cuda:9.2-devel-ubuntu18.04 0.3s

[internal] load metadata for docker.io/nvidia/cuda:9.2-devel-ubuntu18.04:


Dockerfile:2

1 | # The docker file is borrowed from https://github.com/columbia-ai-robotics/dextairity
2 | >>> FROM nvidia/cuda:9.2-devel-ubuntu18.04
3 |
4 | # Dependencies for glvnd and X11.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.