Giter Site home page Giter Site logo

quantaichi's People

Contributors

feisuzhu avatar hanke98 avatar jim19930609 avatar lin-hitonami avatar strongoier avatar th3charlie avatar yuanming-hu 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quantaichi's Issues

cannot run the demo successfully

some errors when I run the Eulerian fluid demo.

  1. KeyError: 'Unrecognized keyword argument(s) for ti.init: use_unified_memory' ---> delete this argument

  2. cft = ti.quant.fixed(frac=21, signed=True, range=2**5) TypeError: fixed() got an unexpected keyword argument 'range' ----> delete range argument

  3. AttributeError: 'MatrixField' object has no attribute 'get_field_members'

Field with dim 2 accessed with indices of dim 3 error in eulerian fluid demo

Reproduction:

Under eulerian_fluid, deflate the tarball under input and run demo.py, the compiler complains that a 2D field is accessed with a 3D index.

Traceback

[Taichi] version 1.3.0, llvm 15.0.4, commit 0f25b95e, linux, python 3.8.13
cmd args: Namespace(advect='mc', debug=False, demo_id=0, dim=2, dye_type=0, frames=10000, outdir=None, quant_all=False, quant_dye=False, quant_v=False, res=512, rk=3, visualize=False)
[Taichi] Starting on arch=cuda
Level 0
  coarsened_grid_size 1024
  coarsened_offset (-512, -512)

  sparse_grid_size 1040
  sparse_offset [-520, -520]
Level 1
  coarsened_grid_size 512
  coarsened_offset [-256, -256]

  sparse_grid_size 528
  sparse_offset [-264, -264]
Level 2
  coarsened_grid_size 256
  coarsened_offset [-128, -128]

  sparse_grid_size 272
  sparse_offset [-136, -136]
Level 3
  coarsened_grid_size 128
  coarsened_offset [-64, -64]

  sparse_grid_size 144
  sparse_offset [-72, -72]
Traceback (most recent call last):
  File "demo.py", line 99, in <module>
    solver = FluidSolver(
  File "/home/taichigraphics/work/taichi-repos/quantaichi/eulerian_fluid/solver.py", line 231, in __init__
    self.set_custom_source(res=640)
  File "/home/taichigraphics/work/taichi-repos/quantaichi/eulerian_fluid/solver.py", line 578, in set_custom_source
    self.set_custom_source_helper(self.dye[0].field, self.density_source[k],
  File "/home/taichigraphics/miniconda3/envs/taichi/lib/python3.8/site-packages/taichi/lang/kernel_impl.py", line 1008, in __call__
    raise type(e)('\n' + str(e)) from None
taichi.lang.exception.TaichiIndexError:
File "/home/taichigraphics/work/taichi-repos/quantaichi/eulerian_fluid/solver.py", line 573, in set_custom_source_helper:
                dyef[k - self.res // 2, i - self.res // 2,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     j - self.res // 2] = [0., 0.5, 1.0]
                     ^^^^^^^^^^^^^^^^^^
Field with dim 2 accessed with indices of dim 3

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.