This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set softtabstop=4 | |
"=== For linux kernel === | |
"set noexpandtab | |
"set tabstop=8 | |
"set shiftwidth=8 | |
"set softtabstop=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/netfilter_ipv4.h> | |
#include <linux/skbuff.h> | |
#include <linux/udp.h> | |
#include <linux/ip.h> | |
/* This function to be called by hook. */ | |
static unsigned int | |
hook_func(unsigned int hooknum, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pcap.h> | |
#include <net/ethernet.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <netinet/tcp.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <sys/types.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[net] | |
batch=64 | |
subdivisions=16 | |
width=416 | |
height=416 | |
channels=3 | |
momentum=0.949 | |
decay=0.0005 | |
angle=0 | |
saturation = 1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source> https://github.com/yogeshgajjar/BDD100k-YOLOV3-tiny/blob/master/utils/test_val_txt.py | |
import pickle | |
import os, argparse | |
from os import listdir, getcwd | |
from os.path import join | |
def create_train(train_img_path): | |
""" | |
Creates the .txt file which contains the entire path of the training image file. This file is required to be added in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classes = 10 | |
train = train.txt | |
valid = test.txt | |
names = bdd100k.names | |
backup = backup/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
car | |
bus | |
person | |
bike | |
truck | |
motor | |
train | |
rider | |
traffic sign | |
traffic light |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source> https://github.com/yogeshgajjar/BDD100k-YOLOV3-tiny/blob/master/utils/label_to_txt.py | |
import argparse | |
import json | |
from pathlib import Path | |
LABEL_MAP = { | |
"car": 0, | |
"bus": 1, | |
"person": 2, | |
"bike": 3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 53ed3d93263ae734ea2b09607b2769454924ad1e Mon Sep 17 00:00:00 2001 | |
From: Taehun Kim <kth3321@gmail.com> | |
Date: Wed, 28 Jul 2021 13:53:33 +0900 | |
Subject: [PATCH] Add AIMMO dataset | |
--- | |
lib/datasets/__init__.py | 11 +++--- | |
lib/datasets/aimmo.py | 78 ++++++++++++++++++++++++++++++++++++++++ | |
2 files changed, 83 insertions(+), 6 deletions(-) | |
create mode 100644 lib/datasets/aimmo.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CUDNN: | |
BENCHMARK: true | |
DETERMINISTIC: false | |
ENABLED: true | |
GPUS: (0,1) | |
OUTPUT_DIR: 'output' | |
LOG_DIR: 'log' | |
WORKERS: 4 | |
PRINT_FREQ: 10 |
NewerOlder