mirror of https://github.com/YifanXu74/MQ-Det.git
1.5 KiB
1.5 KiB
fatal error: THC/THC.h: No such file or directory It is because pytorch removed THC/THC.h after its version 1.11. One solution is to downgrade the torch version, but this may be incompatible with the system dependencies (e.g., GPUs, CUDA, ...) Another solution is to modify the cuda file:
- remove all #include <THC/THC.h>
- replace all
withTHCudaCheck(...);
AT_CUDA_CHECK(...);
THCCeilDiv is undefined
- #include <ATen/ceil_div.h>
- replace all
withTHCCeilDiv(...)
at::ceil_div(...)
THCudaMalloc/THCudaFree/THCState is undefined
- #include <ATen/cuda/ThrustAllocator.h>
- remove the line with THCState
- replace
withTHCudaMalloc(param1, param2)
c10::cuda::CUDACachingAllocator::raw_alloc(param2)
- replace
withTHCudaFree(param1, param2)
c10::cuda::CUDACachingAllocator::raw_delete(param2)
unrecognized arguments: --local-rank=5
This is because torch with a high version receive --local-rank
rather than --local_rank
.
Replace --local-rank
with --local_rank
in coresponding code, and vice versa.
ImportError: libGL.so.1: cannot open shared object file: No such file or directory Solved by this link
Error in dataloader Try to pass:
DATALOADER.NUM_WORKERS 0