jessemelpolio / Faster_RCNN_for_DOTA

Code used for training Faster R-CNN on DOTA
https://arxiv.org/abs/1711.10398
Apache License 2.0
336 stars 102 forks source link

Compatibility issue #45

Open elon-trump opened 1 year ago

elon-trump commented 1 year ago

Just after cloning, while initializing, got the multiple warnings/errors. Below here is detailed explaination what i did for perticular warnings/errors:

  1. Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/rajeshjat Desktop/Dota 2/Faster_RCNN_for_DOTA/lib/dataset/pycocotools/_mask.pyx

to resolve this: I used, language_level = 3 earlier it was language_level = None in the

  1. There were multiple errors similar to maskApi.c: In function ‘rlesFree’: maskApi.c:29:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 29 | for(siz i=0; i<n; i++) rleFree((*R)+i); free(*R); *R=0;

to resolve this : rewrote complete maskAPI.c to make sure proper use of indentation.

  1. In the setup_linux.py, replaced iteritems() with items()

Is it Okay to make these changes?? Or should i clone it again?