RuntimeError: Error building extension 'fast_cocoeval'
Using C:\Users\15496\AppData\Local\torch_extensions\torch_extensions\Cache\py37_cu113 as PyTorch extensions root... Emitting ninja build file C:\Users\15496\AppData\Local\torch_extensions\torch_extensions\Cache\py37_cu113\fast_cocoeval\build.ninja... Building extension module fast_cocoeval... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64/link.exe" cocoeval.o /nologo /DLL c10.lib torch_cpu.lib torch.lib /LIBPATH:D:\F\Anaconda3\envs\yolox\lib\site-packages\torch\lib torch_python.lib /LIBPATH:D:\F\Anaconda3\envs\yolox\libs /out:fast_cocoeval.pyd FAILED: fast_cocoeval.pyd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64/link.exe" cocoeval.o /nologo /DLL c10.lib torch_cpu.lib torch.lib /LIBPATH:D:\F\Anaconda3\envs\yolox\lib\site-packages\torch\lib torch_python.lib /LIBPATH:D:\F\Anaconda3\envs\yolox\libs /out:fast_cocoeval.pyd LINK : fatal error LNK1104: 无法打开文件“fast_cocoeval.pyd” ninja: build stopped: subcommand failed. Traceback (most recent call last): File "D:\F\Anaconda3\envs\yolox\lib\site-packages\torch\utils\cpp_extension.py", line 1723, in _run_ninja_build env=env) File "D:\F\Anaconda3\envs\yolox\lib\subprocess.py", line 468, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "
@yjcreation I have the similer error "Error building extension 'fast_cocoeval'" This error occuers when I try to Training. (doesn't happen only detection with pretrained models.)
I need help. thanks.
请问您解决了么
I also have this error. Any solution?