repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_20186/midgard.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.255106
#ifndef MIDGARD_H #define MIDGARD_H //Generated using pandecode-standalone: https://gitlab.freedesktop.org/panfrost/pandecode-standalone #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <assert.h> #include <math.h> #include <inttypes.h> #include <string.h> #define pan_section_ptr(base, A, S) \ ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_38181/mali_base_jm_kernel.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.295359
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_38181/mali_shrinker_mmap.c
null
null
null
null
null
null
C
2026-05-04T18:21:38.296762
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "stdbool.h" #include <sys/system_properties.h> #include <sys/syscall.h> #include "mali.h" #include "mali_base...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_38181/mali.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.313370
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_38181/midgard.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.330600
#ifndef MIDGARD_H #define MIDGARD_H //Generated using pandecode-standalone: https://gitlab.freedesktop.org/panfrost/pandecode-standalone #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <assert.h> #include <math.h> #include <inttypes.h> #include <string.h> #define pan_section_ptr(base, A, S) \ ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/mali_user_buf.c
null
null
null
null
null
null
C
2026-05-04T18:21:38.408511
#define _GNU_SOURCE #include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "stdbool.h" #include <sys/syscall.h> #include <stdint.h> #include <pthread.h> #include <s...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/mali_base_jm_kernel.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.441639
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/log_utils.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.517015
#ifndef LOG_UTILS_H #define LOG_UTILS_H #ifdef SHELL #define LOG(fmt, ...) printf(fmt, ##__VA_ARGS__) #else #include <android/log.h> #define LOG(fmt, ...) __android_log_print(ANDROID_LOG_ERROR, "exploit", fmt, ##__VA_ARGS__) #endif #endif
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/mali.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.555467
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/mem_write.c
null
null
null
null
null
null
C
2026-05-04T18:21:38.766641
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "stdbool.h" #include <sys/syscall.h> #include <stdint.h> #include "mem_write.h" #include "mempool_utils.h" #...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/mem_write.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.879688
#ifndef MEM_WRITE_H #define MEM_WRITE_H #include <unistd.h> #include "mali.h" #include "mali_base_jm_kernel.h" #include "midgard.h" #include "log_utils.h" #define KERNEL_BASE 0x80000000 #define PAGE_SHIFT 12 #define OVERWRITE_INDEX 256 void* map_gpu(int mali_fd, unsigned int va_pages, unsigned int commit_pages, bo...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/firmware_offsets.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.918412
#ifndef FIRMWARE_OFFSETS_H #define FIRMWARE_OFFSETS_H #define AVC_DENY_2311 0x806b50 #define SEL_READ_ENFORCE_2311 0x818714 #define INIT_CRED_2311 0x271bfa8 #define COMMIT_CREDS_2311 0x167b40 #define ADD_COMMIT_2311 0x912d0108 //add x8, x8, #0xb40 #define ADD_INIT_2311 0x913ea000 //add x0, x0, #0xfa8 #endif
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/midgard.h
null
null
null
null
null
null
C
2026-05-04T18:21:38.918938
#ifndef MIDGARD_H #define MIDGARD_H //Generated using pandecode-standalone: https://gitlab.freedesktop.org/panfrost/pandecode-standalone #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <assert.h> #include <math.h> #include <inttypes.h> #include <string.h> #define pan_section_ptr(base, A, S) \ ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/mempool_utils.c
null
null
null
null
null
null
C
2026-05-04T18:21:38.968367
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include "stdbool.h" #include <sys/syscall.h> #include "mempool_utils.h" #define POOL_SIZE 16384 void mem_alloc(int fd, union kbase_ioct...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/log_utils.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.019666
#ifndef LOG_UTILS_H #define LOG_UTILS_H #ifdef SHELL #define LOG(fmt, ...) printf(fmt, ##__VA_ARGS__) #else #include <android/log.h> #define LOG(fmt, ...) __android_log_print(ANDROID_LOG_ERROR, "exploit", fmt, ##__VA_ARGS__) #endif #endif
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mali_base_common_kernel.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.081617
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2022 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you of th...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2022_46395/mempool_utils.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.107057
#ifndef MEMPOOL_UTILS_H #define MEMPOOL_UTILS_H #include <unistd.h> #include "mali.h" #include "mali_base_jm_kernel.h" #include "log_utils.h" void mem_alloc(int fd, union kbase_ioctl_mem_alloc* alloc); void reserve_pages(int mali_fd, int pages, int nents, uint64_t* reserved_va); void map_reserved(int mali_fd, int p...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mali_base_csf_kernel.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.133673
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2020-2023 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mali_base_kernel.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.188859
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2010-2022 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mali_jit_csf.c
null
null
null
null
null
null
C
2026-05-04T18:21:39.514483
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "stdbool.h" #include <sys/syscall.h> #include <pthread.h> //From https://github.com/KhronosGroup/OpenCL-Heade...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mali_kbase_csf_ioctl.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.519085
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mali_kbase_ioctl.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.546148
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2017-2022 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mem_read_write.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.572777
#ifndef MEM_READ_WRITE_H #define MEM_READ_WRITE_H #include "CL/cl.h" #include "mali_kbase_ioctl.h" #include "mali_base_csf_kernel.h" #include "mali_base_kernel.h" #define KERNEL_BASE 0x80000000 #define PAGE_SHIFT 12 #define OVERWRITE_INDEX 256 struct rw_mem_kernel { cl_mem va; cl_mem in_out; cl_mem flag; c...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mem_read_write.c
null
null
null
null
null
null
C
2026-05-04T18:21:39.634017
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "stdbool.h" #include "mem_read_write.h" #include "mempool_utils.h" #include "firmware_offsets.h" #define ADR...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/GHSL-2023-005/mali.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.713879
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mempool_utils.c
null
null
null
null
null
null
C
2026-05-04T18:21:39.798082
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include "stdbool.h" #include <sys/syscall.h> #include "mempool_utils.h" #define POOL_SIZE 16384 void mem_alloc(int fd, union kbase_ioct...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/CVE_2023_6241/mempool_utils.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.822920
#ifndef MEMPOOL_UTILS_H #define MEMPOOL_UTILS_H #include <unistd.h> #include "mali_kbase_ioctl.h" #include "mali_base_csf_kernel.h" #include "mali_base_kernel.h" #include "log_utils.h" void mem_alloc(int fd, union kbase_ioctl_mem_alloc* alloc); void reserve_pages(int mali_fd, int pages, int nents, uint64_t* reserved...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/GHSL-2023-005/mali_jit.c
null
null
null
null
null
null
C
2026-05-04T18:21:39.897732
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "stdbool.h" #include <sys/system_properties.h> #include <sys/syscall.h> #include <pthread.h> #include "mali.h...
github/securitylab
https://github.com/github/securitylab
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
SecurityExploits/Android/Mali/GHSL-2023-005/mali_base_jm_kernel.h
null
null
null
null
null
null
C
2026-05-04T18:21:39.990454
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you ...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/activations.h
null
null
null
null
null
null
C
2026-05-04T18:21:42.964746
#ifndef ACTIVATIONS_H #define ACTIVATIONS_H #include "cuda.h" #include "math.h" /* ** 所有的激活函数类别(枚举类) */ typedef enum{ LOGISTIC, RELU, RELIE, LINEAR, RAMP, TANH, PLSE, LEAKY, ELU, LOGGY, STAIR, HARDTAN, LHTAN }ACTIVATION; ACTIVATION get_activation(char *s); char *get_activation_string(ACTIVATION a); float activa...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/avgpool_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:42.965821
#include "avgpool_layer.h" #include "cuda.h" #include <stdio.h> avgpool_layer make_avgpool_layer(int batch, int w, int h, int c) { fprintf(stderr, "avg %4d x%4d x%4d -> %4d\n", w, h, c, c); avgpool_layer l = {0}; l.type = AVGPOOL; l.batch = batch; l.h = h; l.w = w; l...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/activations.c
null
null
null
null
null
null
C
2026-05-04T18:21:42.969550
#include "activations.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> char *get_activation_string(ACTIVATION a) { switch(a){ case LOGISTIC: return "logistic"; case LOGGY: return "loggy"; case RELU: return "relu"; c...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/activation_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:42.973021
#include "activation_layer.h" #include "utils.h" #include "cuda.h" #include "blas.h" #include "gemm.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> layer make_activation_layer(int batch, int inputs, ACTIVATION activation) { layer l = {0}; l.type = ACTIVE; l.inputs = inputs...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/batchnorm_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:42.974534
#include "convolutional_layer.h" #include "batchnorm_layer.h" #include "blas.h" #include <stdio.h> layer make_batchnorm_layer(int batch, int w, int h, int c) { fprintf(stderr, "Batch Normalization Layer: %d x %d x %d image\n", w,h,c); layer l = {0}; l.type = BATCHNORM; l.batch = batch; l.h = l.out_...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/activation_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:42.979855
#ifndef ACTIVATION_LAYER_H #define ACTIVATION_LAYER_H #include "activations.h" #include "layer.h" #include "network.h" layer make_activation_layer(int batch, int inputs, ACTIVATION activation); void forward_activation_layer(layer l, network net); void backward_activation_layer(layer l, network net); #ifdef GPU void...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/art.c
null
null
null
null
null
null
C
2026-05-04T18:21:42.980923
#include "network.h" #include "utils.h" #include "parser.h" #include "option_list.h" #include "blas.h" #include "classifier.h" #include <sys/time.h> void demo_art(char *cfgfile, char *weightfile, int cam_index) { #ifdef OPENCV network net = parse_network_cfg(cfgfile); if(weightfile){ load_weights(&net,...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/avgpool_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:43.007200
#ifndef AVGPOOL_LAYER_H #define AVGPOOL_LAYER_H #include "image.h" #include "cuda.h" #include "layer.h" #include "network.h" typedef layer avgpool_layer; image get_avgpool_image(avgpool_layer l); avgpool_layer make_avgpool_layer(int batch, int w, int h, int c); void resize_avgpool_layer(avgpool_layer *l, int w, int ...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/activation_kernels.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.008229
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" extern "C" { #include "activations.h" #include "cuda.h" } __device__ float lhtan_activate_kernel(float x) { if(x < 0) return .001*x; if(x > 1) return .001*(x-1) + 1; return x; } __device__ float lhtan_gradient_kernel(float x) { if(x...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/avgpool_layer_kernels.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.036111
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" extern "C" { #include "avgpool_layer.h" #include "cuda.h" } __global__ void forward_avgpool_layer_kernel(int n, int w, int h, int c, float *input, float *output) { int id = (blockIdx.x + blockIdx.y*gridDim.x) * blockDim.x + threadIdx.x; if(i...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/captcha.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.632296
#include "network.h" #include "utils.h" #include "parser.h" void fix_data_captcha(data d, int mask) { matrix labels = d.y; int i, j; for(i = 0; i < d.y.rows; ++i){ for(j = 0; j < d.y.cols; j += 2){ if (mask){ if(!labels.vals[i][j]){ labels.vals[i][j] ...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/blas.h
null
null
null
null
null
null
C
2026-05-04T18:21:43.633439
#ifndef BLAS_H #define BLAS_H void flatten(float *x, int size, int layers, int batch, int forward); void pm(int M, int N, float *A); float *random_matrix(int rows, int cols); void time_random_matrix(int TA, int TB, int m, int k, int n); void reorg_cpu(float *x, int w, int h, int c, int batch, int stride, int forward, f...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/batchnorm_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:43.656477
#ifndef BATCHNORM_LAYER_H #define BATCHNORM_LAYER_H #include "image.h" #include "layer.h" #include "network.h" layer make_batchnorm_layer(int batch, int w, int h, int c); void forward_batchnorm_layer(layer l, network net); void backward_batchnorm_layer(layer l, network net); #ifdef GPU void forward_batchnorm_layer_g...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/cifar.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.659080
#include "network.h" #include "utils.h" #include "parser.h" #include "option_list.h" #include "blas.h" void train_cifar(char *cfgfile, char *weightfile) { srand(time(0)); float avg_loss = -1; char *base = basecfg(cfgfile); printf("%s\n", base); network net = parse_network_cfg(cfgfile); if(weigh...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/box.h
null
null
null
null
null
null
C
2026-05-04T18:21:43.661171
#ifndef BOX_H #define BOX_H /** * 物体检测定位矩形框,即用于定位物体的矩形框,包含矩形框中心坐标x(横坐标),y(纵坐标)以及矩形框宽w,高h总共4个参数值, * 不包含矩形框中所包含的物体的类别编号值。4个值都是比例坐标,也即占整个图片宽高的比例(x为占图宽的比例,y为占图高的比例)。 */ typedef struct{ float x, y, w, h; } box; typedef struct{ float dx, dy, dw, dh; } dbox; box float_to_box(float *f, int stride); float box_iou(...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/blas.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.667422
#include "blas.h" #include "math.h" #include <assert.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void reorg_cpu(float *x, int w, int h, int c, int batch, int stride, int forward, float *out) { int b,i,j,k; int out_c = c/(stride*stride); for(b = 0; b < batch; ++b){ ...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/classifier.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.669031
#include "network.h" #include "utils.h" #include "parser.h" #include "option_list.h" #include "blas.h" #include "assert.h" #include "classifier.h" #include "cuda.h" #include <sys/time.h> float *get_regression_values(char **labels, int n) { float *v = calloc(n, sizeof(float)); int i; for(i = 0; i < n; ++i){...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/blas_kernels.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.681806
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" #include <assert.h> // 本文件中大量使用extern "C"关键字,关于这个关键字,推荐参考: // https://stackoverflow.com/questions/1041866/in-c-source-what-is-the-effect-of-extern-c // http://blog.csdn.net/xingjiarong/article/details/47656339 // http://www.cnblogs.com/rollenholt/arc...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/box.c
null
null
null
null
null
null
C
2026-05-04T18:21:43.713494
#include "box.h" #include <stdio.h> #include <math.h> #include <stdlib.h> /** 从存储矩形框信息的大数组中,提取某一个矩形框定位信息并返回(f是这个大数组中某一起始地址). * @param f 存储了矩形框信息(每个矩形框有5个参数值,此函数仅提取其中4个用于定位的参数x,y,w,h,不包含物体类别编号) * @param stride 跨度,按倍数跳越取值 * @return b 矩形框信息 */ box float_to_box(float *f, int stride) { /// f中存储每一个矩形框信息的顺序为: x, y, w,...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/col2im.c
null
null
null
null
null
null
C
2026-05-04T18:21:44.507333
#include <stdio.h> #include <math.h> /* * 将输入图像im的channel通道上的第row行,col列像素灰度值加上val(直接修改im的值,因此im相当于是返回值) ** 输入: im 输入图像 ** channels 输入图像的im通道数(这个参数没用。。。) ** height 输入图像im的高度(行) ** width 输入图像im的宽度(列) ** row 需要加上val的像素所在的行数(补零之后的行数,因此需要先减去pad才能得到真正在im中的行数) ** col ...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/col2im_kernels.c
null
null
null
null
null
null
C
2026-05-04T18:21:44.698462
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" extern "C" { #include "col2im.h" #include "cuda.h" } // src: https://github.com/BVLC/caffe/blob/master/src/caffe/util/im2col.cu // You may also want to read: https://github.com/BVLC/caffe/blob/master/LICENSE __global__ void col2im_gpu_kernel(const ...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/convolutional_kernels.c
null
null
null
null
null
null
C
2026-05-04T18:21:44.710033
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" extern "C" { #include "convolutional_layer.h" #include "batchnorm_layer.h" #include "gemm.h" #include "blas.h" #include "im2col.h" #include "col2im.h" #include "utils.h" #include "cuda.h" } __global__ void binarize_kernel(float *x, int n, float *bin...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/connected_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:44.715438
#ifndef CONNECTED_LAYER_H #define CONNECTED_LAYER_H #include "activations.h" #include "layer.h" #include "network.h" typedef layer connected_layer; connected_layer make_connected_layer(int batch, int inputs, int outputs, ACTIVATION activation, int batch_normalize); void forward_connected_layer(connected_layer layer...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/connected_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:44.720913
#include "connected_layer.h" #include "batchnorm_layer.h" #include "utils.h" #include "cuda.h" #include "blas.h" #include "gemm.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* ** 构建全连接层 ** 输入: batch 该层输入中一个batch所含有的图片张数,等于net.batch ** inputs 全连接层每张输入图片的元...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/convolutional_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:44.755481
#include "convolutional_layer.h" #include "utils.h" #include "batchnorm_layer.h" #include "im2col.h" #include "col2im.h" #include "blas.h" #include "gemm.h" #include <stdio.h> #include <time.h> #ifdef AI2 #include "xnor_layer.h" #endif void swap_binary(convolutional_layer *l) { float *swap = l->weights; l->we...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/col2im.h
null
null
null
null
null
null
C
2026-05-04T18:21:44.784729
#ifndef COL2IM_H #define COL2IM_H void col2im_cpu(float* data_col, int channels, int height, int width, int ksize, int stride, int pad, float* data_im); #ifdef GPU void col2im_ongpu(float *data_col, int channels, int height, int width, int ksize, int stride, int pad, float *data_im); #...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/compare.c
null
null
null
null
null
null
C
2026-05-04T18:21:45.200917
#include <stdio.h> #include "network.h" #include "detection_layer.h" #include "cost_layer.h" #include "utils.h" #include "parser.h" #include "box.h" void train_compare(char *cfgfile, char *weightfile) { srand(time(0)); float avg_loss = -1; char *base = basecfg(cfgfile); char *backup_directory = "/home...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/convolutional_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:45.202044
#ifndef CONVOLUTIONAL_LAYER_H #define CONVOLUTIONAL_LAYER_H #include "cuda.h" #include "image.h" #include "activations.h" #include "layer.h" #include "network.h" typedef layer convolutional_layer; #ifdef GPU void forward_convolutional_layer_gpu(convolutional_layer layer, network net); void backward_convolutional_lay...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/coco.c
null
null
null
null
null
null
C
2026-05-04T18:21:45.203224
#include <stdio.h> #include "network.h" #include "detection_layer.h" #include "cost_layer.h" #include "utils.h" #include "parser.h" #include "box.h" #include "demo.h" char *coco_classes[] = {"person","bicycle","car","motorcycle","airplane","bus","train","truck","boat","traffic light","fire hydrant","stop sign","parki...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/cost_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:45.696321
#ifndef COST_LAYER_H #define COST_LAYER_H #include "layer.h" #include "network.h" typedef layer cost_layer; COST_TYPE get_cost_type(char *s); char *get_cost_string(COST_TYPE a); cost_layer make_cost_layer(int batch, int inputs, COST_TYPE type, float scale); void forward_cost_layer(const cost_layer l, network net); vo...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/crnn_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:45.697314
#include "crnn_layer.h" #include "convolutional_layer.h" #include "utils.h" #include "cuda.h" #include "blas.h" #include "gemm.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static void increment_layer(layer *l, int steps) { int num = l->outputs*l->batch*steps; l->output += nu...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/crop_layer_kernels.c
null
null
null
null
null
null
C
2026-05-04T18:21:45.721493
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" extern "C" { #include "crop_layer.h" #include "utils.h" #include "cuda.h" #include "image.h" } __device__ float get_pixel_kernel(float *image, int w, int h, int x, int y, int c) { if(x < 0 || x >= w || y < 0 || y >= h) return 0; return image...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/crop_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:45.789414
#ifndef CROP_LAYER_H #define CROP_LAYER_H #include "image.h" #include "layer.h" #include "network.h" typedef layer crop_layer; image get_crop_image(crop_layer l); crop_layer make_crop_layer(int batch, int h, int w, int c, int crop_height, int crop_width, int flip, float angle, float saturation, float exposure); void...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/cuda.h
null
null
null
null
null
null
C
2026-05-04T18:21:45.876673
#ifndef CUDA_H #define CUDA_H extern int gpu_index; #ifdef GPU #define BLOCK 512 #include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" #ifdef CUDNN #include "cudnn.h" #endif void check_error(cudaError_t status); cublasHandle_t blas_handle(); float *cuda_make_array(float *x, size_t n); int *cuda_mak...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/darknet.c
null
null
null
null
null
null
C
2026-05-04T18:21:46.245456
#include <time.h> #include <stdlib.h> #include <stdio.h> #include "parser.h" #include "utils.h" #include "cuda.h" #include "blas.h" #include "connected_layer.h" extern void predict_classifier(char *datacfg, char *cfgfile, char *weightfile, char *filename, int top); extern void test_detector(char *datacfg, char *cfgfi...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/cuda.c
null
null
null
null
null
null
C
2026-05-04T18:21:46.247122
int gpu_index = 0; #ifdef GPU #include "cuda.h" #include "utils.h" #include "blas.h" #include "assert.h" #include <stdlib.h> #include <time.h> /* ** 设置当前活跃GPU卡号(即设置gpu_index=n,同时调用cudaSetDevice函数设置当前计算的GPU卡号), ** 并进行错误检查 */ void cuda_set_device(int n) { gpu_index = n; // 设置当前活跃卡号:返回值类型为cudaError_t,当返回cudaS...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/cost_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:46.512237
#include "cost_layer.h" #include "utils.h" #include "cuda.h" #include "blas.h" #include <math.h> #include <string.h> #include <stdlib.h> #include <stdio.h> /* ** 支持四种cost functions ** L1 即误差的绝对值之和 ** SSE 即L2,误差的平方和(可以查看blas.c中的l2_cpu()函数,没有乘以1/2),为绝大部分网络采用, 全称应该是the sum of squares due to error(参考的:http:/...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/deconvolutional_kernels.c
null
null
null
null
null
null
C
2026-05-04T18:21:46.644758
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" extern "C" { #include "convolutional_layer.h" #include "deconvolutional_layer.h" #include "batchnorm_layer.h" #include "gemm.h" #include "blas.h" #include "im2col.h" #include "col2im.h" #include "utils.h" #include "cuda.h" } extern "C" void forward_...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/data.h
null
null
null
null
null
null
C
2026-05-04T18:21:46.665335
#ifndef DATA_H #define DATA_H #include <pthread.h> #include "matrix.h" #include "list.h" #include "image.h" #include "tree.h" static inline float distance_from_edge(int x, int max) { int dx = (max/2) - x; if (dx < 0) dx = -dx; dx = (max/2) + 1 - dx; dx *= 2; float dist = (float)dx/max; if (dis...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/data.c
null
null
null
null
null
null
C
2026-05-04T18:21:46.715497
#include "data.h" #include "utils.h" #include "image.h" #include "cuda.h" #include <stdio.h> #include <stdlib.h> #include <string.h> pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; /* ** 从文件filename中读取数据信息(不是具体的图像数据,只是关于数据的相关信息),存至链表返回:依次调用fgetl()->list_insert()函数 ** 输入: filename 文件名称 ** 输出: list指针,包含从文件中读取...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/deconvolutional_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:46.759170
#include "deconvolutional_layer.h" #include "convolutional_layer.h" #include "batchnorm_layer.h" #include "utils.h" #include "im2col.h" #include "col2im.h" #include "blas.h" #include "gemm.h" #include <stdio.h> #include <time.h> static size_t get_workspace_size(layer l){ return (size_t)l.h*l.w*l.size*l.size*l.n*s...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/deconvolutional_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:46.825097
#ifndef DECONVOLUTIONAL_LAYER_H #define DECONVOLUTIONAL_LAYER_H #include "cuda.h" #include "image.h" #include "activations.h" #include "layer.h" #include "network.h" #ifdef GPU void forward_deconvolutional_layer_gpu(layer l, network net); void backward_deconvolutional_layer_gpu(layer l, network net); void update_deco...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/demo.c
null
null
null
null
null
null
C
2026-05-04T18:21:46.873081
#include "network.h" #include "detection_layer.h" #include "region_layer.h" #include "cost_layer.h" #include "utils.h" #include "parser.h" #include "box.h" #include "image.h" #include "demo.h" #include <sys/time.h> #define DEMO 1 #ifdef OPENCV static char **demo_names; static image **demo_alphabet; static int demo_c...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/demo.h
null
null
null
null
null
null
C
2026-05-04T18:21:46.939153
#ifndef DEMO_H #define DEMO_H #include "image.h" void demo(char *cfgfile, char *weightfile, float thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix, int avg, float hier_thresh, int w, int h, int fps, int fullscreen); #endif
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/detection_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:47.080746
#include "detection_layer.h" #include "activations.h" #include "softmax_layer.h" #include "blas.h" #include "box.h" #include "cuda.h" #include "utils.h" #include <stdio.h> #include <assert.h> #include <string.h> #include <stdlib.h> detection_layer make_detection_layer(int batch, int inputs, int n, int side, int classe...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/detection_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:47.337265
#ifndef DETECTION_LAYER_H #define DETECTION_LAYER_H #include "layer.h" #include "network.h" typedef layer detection_layer; detection_layer make_detection_layer(int batch, int inputs, int n, int size, int classes, int coords, int rescore); void forward_detection_layer(const detection_layer l, network net); void backw...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/detector.c
null
null
null
null
null
null
C
2026-05-04T18:21:47.338113
#include "network.h" #include "region_layer.h" #include "cost_layer.h" #include "utils.h" #include "parser.h" #include "box.h" #include "demo.h" #include "option_list.h" #include "blas.h" static int coco_ids[] = {1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,31,32,33,34,35,36,37,38,39,40,41,42,4...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/crnn_layer.h
null
null
null
null
null
null
C
2026-05-04T18:21:52.322666
#ifndef CRNN_LAYER_H #define CRNN_LAYER_H #include "activations.h" #include "layer.h" #include "network.h" layer make_crnn_layer(int batch, int h, int w, int c, int hidden_filters, int output_filters, int steps, ACTIVATION activation, int batch_normalize); void forward_crnn_layer(layer l, network net); void backwar...
hgpvision/darknet
https://github.com/hgpvision/darknet
null
null
null
null
1,605
null
null
mit
null
null
null
null
null
null
null
src/crop_layer.c
null
null
null
null
null
null
C
2026-05-04T18:21:52.467604
#include "crop_layer.h" #include "cuda.h" #include <stdio.h> image get_crop_image(crop_layer l) { int h = l.out_h; int w = l.out_w; int c = l.out_c; return float_to_image(w,h,c,l.output); } void backward_crop_layer(const crop_layer l, network net){} void backward_crop_layer_gpu(const crop_layer l, net...
golang-ui/nuklear
https://github.com/golang-ui/nuklear
null
null
null
null
1,603
null
null
mit
null
null
null
null
null
null
null
nk/nk.c
null
null
null
null
null
null
C
2026-05-04T18:21:55.044808
#include "nk.h" extern void igClipboardPaste(nk_handle handle, struct nk_text_edit *text_edit); extern void igClipboardCopy(nk_handle handle, const char *content, int len); void nk_register_clipboard(struct nk_context *ctx) { ctx->clip.copy = igClipboardCopy; ctx->clip.paste = igClipboardPaste; }
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Examples/C/Advanced/main.c
null
null
null
null
null
null
C
2026-05-04T18:21:57.499184
#include "Fusion.h" #include <stdbool.h> #include <stdio.h> #include <time.h> #define SAMPLE_RATE (100) // replace with actual sample rate int main() { // Calibration parameters (replace with actual calibration data) const FusionMatrix gyroscopeMisalignment = {1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionConvention.h
null
null
null
null
null
null
C
2026-05-04T18:21:57.516265
/** * @file FusionConvention.h * @author Seb Madgwick * @brief Earth axes convention. */ #ifndef FUSION_CONVENTION_H #define FUSION_CONVENTION_H //------------------------------------------------------------------------------ // Definitions /** * @brief Earth axes convention. */ typedef enum { FusionConven...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionCompass.c
null
null
null
null
null
null
C
2026-05-04T18:21:57.520161
/** * @file FusionCompass.c * @author Seb Madgwick * @brief Tilt-compensated compass to calculate magnetic heading. */ //------------------------------------------------------------------------------ // Includes #include "FusionCompass.h" #include <math.h> //------------------------------------------------------...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionAhrs.c
null
null
null
null
null
null
C
2026-05-04T18:21:57.525321
/** * @file FusionAhrs.c * @author Seb Madgwick * @brief Attitude and Heading Reference System (AHRS) algorithm. */ //------------------------------------------------------------------------------ // Includes #include <float.h> #include "FusionAhrs.h" #include <math.h> //-----------------------------------------...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionBias.h
null
null
null
null
null
null
C
2026-05-04T18:21:57.531313
/** * @file FusionBias.h * @author Seb Madgwick * @brief Run-time estimation and compensation of gyroscope offset. */ #ifndef FUSION_BIAS_H #define FUSION_BIAS_H //------------------------------------------------------------------------------ // Includes #include "FusionMath.h" //-------------------------------...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionCompass.h
null
null
null
null
null
null
C
2026-05-04T18:21:57.538627
/** * @file FusionCompass.h * @author Seb Madgwick * @brief Tilt-compensated compass to calculate magnetic heading. */ #ifndef FUSION_COMPASS_H #define FUSION_COMPASS_H //------------------------------------------------------------------------------ // Includes #include "FusionConvention.h" #include "FusionMath....
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Examples/C/Simple/main.c
null
null
null
null
null
null
C
2026-05-04T18:21:57.541095
#include "Fusion.h" #include <stdbool.h> #include <stdio.h> #define SAMPLE_PERIOD (0.01f) // replace with actual sample period int main() { // Initialise structure FusionAhrs ahrs; FusionAhrsInitialise(&ahrs); // This loop should repeat for each new gyroscope measurement while (true) { //...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/Fusion.h
null
null
null
null
null
null
C
2026-05-04T18:21:57.542840
/** * @file Fusion.h * @author Seb Madgwick * @brief Main header file for the Fusion library. */ #ifndef FUSION_H #define FUSION_H //------------------------------------------------------------------------------ // Includes #ifdef __cplusplus extern "C" { #endif #include "FusionAhrs.h" #include "FusionBias.h" #...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionAhrs.h
null
null
null
null
null
null
C
2026-05-04T18:21:57.547179
/** * @file FusionAhrs.h * @author Seb Madgwick * @brief Attitude and Heading Reference System (AHRS) algorithm. */ #ifndef FUSION_AHRS_H #define FUSION_AHRS_H //------------------------------------------------------------------------------ // Includes #include "FusionConvention.h" #include "FusionMath.h" #inclu...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionBias.c
null
null
null
null
null
null
C
2026-05-04T18:21:57.561430
/** * @file FusionBias.c * @author Seb Madgwick * @brief Run-time estimation and compensation of gyroscope offset. */ //------------------------------------------------------------------------------ // Includes #include "FusionBias.h" #include <math.h> //----------------------------------------------------------...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionMath.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.148793
/** * @file FusionMath.h * @author Seb Madgwick * @brief Math library. */ #ifndef FUSION_MATH_H #define FUSION_MATH_H //------------------------------------------------------------------------------ // Includes #include <math.h> #include <stdbool.h> #include <stdint.h> //----------------------------------------...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/Ahrs.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.179689
#ifndef AHRS_H #define AHRS_H #include "../../Fusion/Fusion.h" #include "AhrsFlags.h" #include "AhrsInternalStates.h" #include "AhrsSettings.h" #include "NpArray.h" #include <Python.h> typedef struct { PyObject_HEAD FusionAhrs wrapped; } Ahrs; static PyObject *ahrs_new(PyTypeObject *subtype, PyObject *args, ...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/Compass.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.196914
#ifndef COMPASS_H #define COMPASS_H #include "../../Fusion/Fusion.h" #include "Convention.h" #include "NpArray.h" #include <Python.h> static PyObject *compass(PyObject *self, PyObject *args) { PyObject *accelerometer_object; PyObject *magnetometer_object; int convention_int = fusionAhrsDefaultSettings.con...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/Bias.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.197437
#ifndef BIAS_H #define BIAS_H #include "../../Fusion/Fusion.h" #include "BiasSettings.h" #include "NpArray.h" #include <Python.h> typedef struct { PyObject_HEAD FusionBias wrapped; } Bias; static PyObject *bias_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { if (PyArg_ParseTuple(args, "") ==...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/AhrsFlags.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.206674
#ifndef AHRS_FLAGS_H #define AHRS_FLAGS_H #include "../../Fusion/Fusion.h" #include <Python.h> typedef struct { PyObject_HEAD FusionAhrsFlags wrapped; } AhrsFlags; static void ahrs_flags_free(AhrsFlags *self) { Py_TYPE(self)->tp_free(self); } static PyObject *ahrs_flags_get_startup(AhrsFlags *self) { ...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/AhrsInternalStates.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.207991
#ifndef AHRS_INTERNAL_STATES_H #define AHRS_INTERNAL_STATES_H #include "../../Fusion/Fusion.h" #include <Python.h> typedef struct { PyObject_HEAD FusionAhrsInternalStates wrapped; } AhrsInternalStates; static void ahrs_internal_states_free(AhrsInternalStates *self) { Py_TYPE(self)->tp_free(self); } stat...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionModel.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.208951
/** * @file FusionModel.h * @author Seb Madgwick * @brief Sensor models for applying calibration parameters. */ #ifndef FUSION_MODEL_H #define FUSION_MODEL_H //------------------------------------------------------------------------------ // Includes #include "FusionMath.h" //-----------------------------------...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/AhrsSettings.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.245218
#ifndef AHRS_SETTINGS_H #define AHRS_SETTINGS_H #include "../../Fusion/Fusion.h" #include "Convention.h" #include <Python.h> typedef struct { PyObject_HEAD FusionAhrsSettings wrapped; } AhrsSettings; static PyObject *ahrs_settings_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { int conventio...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Fusion/FusionRemap.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.245844
/** * @file FusionRemap.h * @author Seb Madgwick * @brief Remaps the sensor axes to the body frame. */ #ifndef FUSION_REMAP_H #define FUSION_REMAP_H //------------------------------------------------------------------------------ // Includes #include "FusionMath.h" //--------------------------------------------...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/BiasSettings.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.274369
#ifndef BIAS_SETTINGS_H #define BIAS_SETTINGS_H #include "../../Fusion/Fusion.h" #include <Python.h> typedef struct { PyObject_HEAD FusionBiasSettings settings; } BiasSettings; static PyObject *bias_settings_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) { FusionBiasSettings settings = fusion...
xioTechnologies/Fusion
https://github.com/xioTechnologies/Fusion
null
null
null
null
1,589
null
null
mit
null
null
null
null
null
null
null
Python/imufusion/Convention.h
null
null
null
null
null
null
C
2026-05-04T18:21:58.774579
#ifndef CONVENTION_H #define CONVENTION_H #include "../../Fusion/Fusion.h" #include <Python.h> static int convention_from(FusionConvention *const convention, const int convention_int) { switch (convention_int) { case FusionConventionNwu: case FusionConventionEnu: case FusionConventionNed: ...