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

RuntimeError: triangles.is_contiguous() INTERNAL ASSERT FAILED at "rasterize_triangles.cpp" #23

Closed
iamchenxin-coder opened this issue Mar 31, 2021 · 4 comments

Comments

@iamchenxin-coder
Copy link

iamchenxin-coder commented Mar 31, 2021

This error occurs when I run the train.py script. I don't know how to fix it.
python train.py --data_dir $video_dir --num_epoch 20 --serial_batches False --display_freq 400 --print_freq 400 --batch_size 5

image

image

@iamchenxin-coder iamchenxin-coder changed the title Running the training script fails to obtain the correct dataset. RuntimeError: triangles.is_contiguous() INTERNAL ASSERT FAILED at "rasterize_triangles.cpp" Apr 1, 2021
@RylanLiu-buaa
Copy link

之前用pytorch1.2和NVIDIA 1070就能通跑20s数据量的,但跑作者给的240s的就会显存不够。所以换成NVIDIA 3090,但需要pytorch1.8 这3090才能工作,但就会出上面这个triangles的错误。pytorch1.2 3090卡是不工作的直接程序就卡死在那了。估计就是pytorch的版本问题。

@iamchenxin-coder
Copy link
Author

我使用Tesla V100的torch=1.8还是出现这个问题

@quqixun
Copy link
Contributor

quqixun commented Jun 22, 2021

在 renderer/rasterizer.py 文件第19行前加入以下两行:

if not triangles.is_contiguous():
    triangles = triangles.contiguous()

测试环境为 Pytorch 1.8 + CUDA 11.1。

xinwen-cs added a commit that referenced this issue Aug 27, 2021
@xinwen-cs
Copy link
Owner

@quqixun thanks for PR
seems solved

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

4 participants