-
Notifications
You must be signed in to change notification settings - Fork 431
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
support pytorch1.11 #152
base: master
Are you sure you want to change the base?
support pytorch1.11 #152
Conversation
/home/test/Persons/hukaixuan/yolov5/utils/nms_rotated/src/poly_nms_cuda.cu:5:27: fatal error: ATen/ceil_div.h: No such file or directory
compilation terminated.
ninja: build stopped: subcommand failed. It seems ’ATen/ceil_div.h‘ is missing in Torch1.10.0. |
we can wait for pytoch1.11(stable) to test this pr, if you use the newest NGC image, maybe the pr work. my dev environment : cuda11.5 pytorch1.11 ,nvcr.io/nvidia/pytorch:21.12-py3 from NGC |
Thanks for the PR @QingYuan-L. In addition to the changes that you have made, I had to comment out THC/THC.h and include c10/cuda/CUDACachingAllocator.h in the poly_nms_cuda.cu file to make it compile. For example:
CUDA version: 11.7 |
Same environment, but I need to change THCudaCheck to C10_CUDA_CHECK to compile. |
I'm running into the same problem, I'm quite new to this field and don't understand everything here. Could someone help me out with a more detailed explanation what to do?
|
目前支持pytorch1.11吗 |
have you solved this problem? |
have you solved this problem? |
My solution to compile successfully was to downgrade torch and change the requirements.txt to:
|
我改了算子,采用mmcv的,不用编译,直接可以用最新的torch版本1.12
…---Original---
From: ***@***.***>
Date: Tue, Jan 10, 2023 21:51 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [hukaixuan19970627/yolov5_obb] support pytorch1.11 (PR #152)
My solution to compile successfully was to downgrade torch and change the requirements.txt to:
torch==1.9.1 torchvision==0.10.1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
你好,请问方便提供一下相关代码或者指点一下迷津吗? |
hi? |
according to pytorch/pytorch#65492
and pytorch/pytorch#65472