Win configures several big pits for target detection such as faster-rcnn, yolo, and ctpn

Win configures several big pits for target detection such as faster-rcnn, yolo, and ctpn

##The compilation of bbox and nms files is a big pit

Several common errors:

  1. AttributeError: ‘MSVCCompiler’ object has no attribute ‘compiler_so’
  2. ValueError: Buffer dtype mismatch, expected ‘int_t’ but got 'long long
  3. ImportError: cannot import name ‘bbox’
  4. mv: unable to get file status (stat) for 'utils/*': No such file or directory

Reason analysis
1. This problem has no solution on win7. No matter how to install vs2015 or .net, it is useless. It is possible on win10, and the personal test is effective; 2. Many people
say that changing int to intp is useless.
3. This is a pure compilation problem. It seems that there is no way to compile it on win7.
4. This is a .so file that will be generated after compilation, but this file cannot be copied. I don’t know how to mv. This problem will not happen in Linux , neither win7 nor win10

In view of these problems, my final solution is to use win10 machine to compile some common ones, such as bbox and cython_nms (in some models, the code name of import may be different, just change the file name)

The compiled file is here
https://github.com/liuxufenfeiya/win-cython_nms-bbox-

Guess you like

Origin blog.csdn.net/u013837919/article/details/86743105