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
Comments
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
之前用pytorch1.2和NVIDIA 1070就能通跑20s数据量的,但跑作者给的240s的就会显存不够。所以换成NVIDIA 3090,但需要pytorch1.8 这3090才能工作,但就会出上面这个triangles的错误。pytorch1.2 3090卡是不工作的直接程序就卡死在那了。估计就是pytorch的版本问题。 |
我使用Tesla V100的torch=1.8还是出现这个问题 |
在 renderer/rasterizer.py 文件第19行前加入以下两行: if not triangles.is_contiguous():
triangles = triangles.contiguous() 测试环境为 Pytorch 1.8 + CUDA 11.1。 |
@quqixun thanks for PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: