MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / get_paths

Function get_paths

yolo_detector/darknet_opt/src/data.c:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
11
12list *get_paths(char *filename)
13{
14 char *path;
15 FILE *file = fopen(filename, "r");
16 if(!file) file_error(filename);
17 list *lines = make_list();
18 while((path=fgetl(file))){
19 list_insert(lines, path);
20 }
21 fclose(file);
22 return lines;
23}
24
25/*
26char **get_random_paths_indexes(char **paths, int n, int m, int *indexes)

Callers 15

change_leavesFunction · 0.85
get_labelsFunction · 0.85
train_regressorFunction · 0.85
train_tagFunction · 0.85
train_captchaFunction · 0.85
valid_captchaFunction · 0.85
train_yoloFunction · 0.85
validate_yoloFunction · 0.85
validate_yolo_recallFunction · 0.85
train_cocoFunction · 0.85
validate_cocoFunction · 0.85
validate_coco_recallFunction · 0.85

Calls 4

file_errorFunction · 0.85
make_listFunction · 0.85
fgetlFunction · 0.85
list_insertFunction · 0.85

Tested by 1

test_classifierFunction · 0.68