Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'function' object has no attribute 'var' #1

Open
wangguangyuan opened this issue Feb 26, 2022 · 3 comments
Open

AttributeError: 'function' object has no attribute 'var' #1

wangguangyuan opened this issue Feb 26, 2022 · 3 comments

Comments

@wangguangyuan
Copy link

您好感谢开源这么优秀的工作,我在跑你的程序的时候报错
Traceback (most recent call last):
File "render_smpl.py", line 97, in
render_smpl_global_normal(args.dataroot, args.obj_path, args.faces_path, res, args.yaw_list, args.flip_y, args.flip_normal)
File "render_smpl.py", line 50, in render_smpl_global_normal
camera = t3.Camera(res=res)
File "/workspace/DeepMultiCap/taichi_render_gpu/taichi_three/transform.py", line 111, in init
self.mask = ti.Vector.var(3, ti.f32, self.res)
AttributeError: 'function' object has no attribute 'var'

@DSaurus
Copy link
Owner

DSaurus commented Feb 27, 2022

It seems like your taichi version is higher, you can try to downgrade taichi to 0.6.39.

@wangguangyuan
Copy link
Author

@DSaurus 非常感谢您百忙之中回复,我试着安装taichi0.6.39版本, pip install taichi==0.6.39发现 pip 源里已经没有这个版本了无法安装, 能否更新个支持高版本的代码,或者我自己改的话我不太清楚改的地方多不多.

@DSaurus
Copy link
Owner

DSaurus commented Feb 28, 2022

We run our test successfully with taichi==0.7.15, so you can try to install taichi==0.7.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants