資源簡介
在安裝mmdetection過程中,會需要安裝cocoapi-master,你可以下載我當前的文件,根據我的博客內容進行下載安裝,來正常運行mmdetection.

代碼片段和文件信息
//?https://github.com/vivkin/gason?-?pulled?January?10?2016
#include?“gason.h“
#include?
#define?JSON_ZONE_SIZE?4096
#define?JSON_STACK_SIZE?32
const?char?*jsonStrError(int?err)?{
????switch?(err)?{
#define?XX(no?str)?\
????case?JSON_##no:?\
????????return?str;
????????JSON_ERRNO_MAP(XX)
#undef?XX
????default:
????????return?“unknown“;
????}
}
void?*JsonAllocator::allocate(size_t?size)?{
????size?=?(size?+?7)?&?~7;
????if?(head?&&?head->used?+?size?<=?JSON_ZONE_SIZE)?{
????????char?*p?=?(char?*)head?+?head->used;
????????head->used?+=?size;
????????return?p;
????}
????size_t?allocSize?=?sizeof(Zone)?+?size;
????Zone?*zone?=?(Zone?*)malloc(allocSize?<=?JSON_ZONE_SIZE???JSON_ZONE_SIZE?:?allocSize);
????if?(zone?==?nullptr)
????????return?nullptr;
????zone->used?=?allocSize;
????if?(allocSize?<=?JSON_ZONE_SIZE?||?head?==?nullptr)?{
????????zone->next?=?head;
????????head?=?zone;
????}?else?{
????????zone->next?=?head->next;
????????head->next?=?zone;
????}
????return?(char?*)zone?+?sizeof(Zone);
}
void?JsonAllocator::deallocate()?{
????while?(head)?{
????????Zone?*next?=?head->next;
????????free(head);
????????head?=?next;
????}
}
static?inline?bool?isspace(char?c)?{
????return?c?==?‘?‘?||?(c?>=?‘\t‘?&&?c?<=?‘\r‘);
}
static?inline?bool?isdelim(char?c)?{
????return?c?==?‘‘?||?c?==?‘:‘?||?c?==?‘]‘?||?c?==?‘}‘?||?isspace(c)?||?!c;
}
static?inline?bool?isdigit(char?c)?{
????return?c?>=?‘0‘?&&?c?<=?‘9‘;
}
static?inline?bool?isxdigit(char?c)?{
????return?(c?>=?‘0‘?&&?c?<=?‘9‘)?||?((c?&?~‘?‘)?>=?‘A‘?&&?(c?&?~‘?‘)?<=?‘F‘);
}
static?inline?int?char2int(char?c)?{
????if?(c?<=?‘9‘)
????????return?c?-?‘0‘;
????return?(c?&?~‘?‘)?-?‘A‘?+?10;
}
static?double?string2double(char?*s?char?**endptr)?{
????char?ch?=?*s;
????if?(ch?==?‘-‘)
????????++s;
????double?result?=?0;
????while?(isdigit(*s))
????????result?=?(result?*?10)?+?(*s++?-?‘0‘);
????if?(*s?==?‘.‘)?{
????????++s;
????????double?fraction?=?1;
????????while?(isdigit(*s))?{
????????????fraction?*=?0.1;
????????????result?+=?(*s++?-?‘0‘)?*?fraction;
????????}
????}
????if?(*s?==?‘e‘?||?*s?==?‘E‘)?{
????????++s;
????????double?base?=?10;
????????if?(*s?==?‘+‘)
????????????++s;
????????else?if?(*s?==?‘-‘)?{
????????????++s;
????????????base?=?0.1;
????????}
????????unsigned?int?exponent?=?0;
????????while?(isdigit(*s))
????????????exponent?=?(exponent?*?10)?+?(*s++?-?‘0‘);
????????double?power?=?1;
????????for?(;?exponent;?exponent?>>=?1?base?*=?base)
????????????if?(exponent?&?1)
????????????????power?*=?base;
????????result?*=?power;
????}
????*endptr?=?s;
????return?ch?==?‘-‘???-result?:?result;
}
static?inline?JsonNode?*insertAfter(JsonNode?*tail?JsonNode?*node)?{
????if?(!tail)
????????return?node->next?=?node;
????node->next?=?tail->next;
????tail->next?=?node;
????return?node;
}
static?inline?JsonValue?listToValue(JsonTag?tag?JsonNode?*tail)?{
????if?(tail)?{
????????auto?head?=?tail->next;
????????tail->next?=?nullptr;
????????return?JsonValue(tag?head);
????}
???
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-24?23:00??cocoapi-master\
?????文件?????????327??2018-10-24?23:00??cocoapi-master\.gitignore
?????目錄???????????0??2018-10-24?23:00??cocoapi-master\PythonAPI\
?????文件?????????199??2018-10-24?23:00??cocoapi-master\PythonAPI\Makefile
?????目錄???????????0??2018-10-24?23:00??cocoapi-master\PythonAPI\demos\
?????文件?????1792247??2018-10-24?23:00??cocoapi-master\PythonAPI\demos\pycocoDemo.ipynb
?????文件????????6912??2018-10-24?23:00??cocoapi-master\PythonAPI\demos\pycocoEvalDemo.ipynb
?????目錄???????????0??2018-10-24?23:00??cocoapi-master\PythonAPI\pycocotools\
?????文件??????????21??2018-10-24?23:00??cocoapi-master\PythonAPI\pycocotools\__init__.py
?????文件???????11440??2018-10-24?23:00??cocoapi-master\PythonAPI\pycocotools\_mask.pyx
?????文件???????18655??2018-10-24?23:00??cocoapi-master\PythonAPI\pycocotools\coco.py
?????文件???????24143??2018-10-24?23:00??cocoapi-master\PythonAPI\pycocotools\cocoeval.py
?????文件????????4591??2018-10-24?23:00??cocoapi-master\PythonAPI\pycocotools\mask.py
?????文件?????????910??2018-10-24?23:00??cocoapi-master\PythonAPI\setup.py
?????文件????????3285??2018-10-24?23:00??cocoapi-master\README.md
?????目錄???????????0??2018-10-24?23:00??cocoapi-master\common\
?????文件????????9540??2018-10-24?23:00??cocoapi-master\common\gason.cpp
?????文件????????3483??2018-10-24?23:00??cocoapi-master\common\gason.h
?????文件????????8308??2018-10-24?23:00??cocoapi-master\common\maskApi.c
?????文件????????2176??2018-10-24?23:00??cocoapi-master\common\maskApi.h
?????目錄???????????0??2018-10-24?23:00??cocoapi-master\img\
?????文件???????16216??2018-10-24?23:00??cocoapi-master\img\download.png
?????文件???????24743??2018-10-24?23:00??cocoapi-master\img\install.png
?????文件???????31438??2018-10-24?23:00??cocoapi-master\img\notebooks.png
?????文件????????1533??2018-10-24?23:00??cocoapi-master\license.txt
?????目錄???????????0??2018-10-24?23:00??cocoapi-master\results\
?????文件???????88987??2018-10-24?23:00??cocoapi-master\results\captions_val2014_fakecap_results.json
?????文件???????60041??2018-10-24?23:00??cocoapi-master\results\instances_val2014_fakebbox100_results.json
?????文件??????271537??2018-10-24?23:00??cocoapi-master\results\instances_val2014_fakesegm100_results.json
?????文件???????35756??2018-10-24?23:00??cocoapi-master\results\person_keypoints_val2014_fakekeypoints100_results.json
?????文件????????3278??2018-10-24?23:00??cocoapi-master\results\val2014_fake_eval_res.txt
............此處省略0個文件信息
- 上一篇:汽車發動機unity模型包
- 下一篇:IRMCS3041使用說明
評論
共有 條評論