资源简介
在安装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使用说明
评论
共有 条评论