This file contains hidden or 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 <limits.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <unistd.h> | |
#include <time.h> | |
/* compile guide | |
// define color standard | |
// -DBT601 -DBT709 -DNARROW |
This file contains hidden or 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 <stdio.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct lite_test; | |
/**@brief struct for LiteTest | |
**/ | |
typedef struct lite_test { |
This file contains hidden or 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
import random | |
import numpy as np | |
import matplotlib.pylab as plt | |
import os | |
import sys | |
import cv2 | |
import argparse | |
np.set_printoptions(precision=4, suppress=True) |
This file contains hidden or 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
import torchvision.datasets.voc as voc | |
import torch | |
from torchvision.datasets import VisionDataset | |
from torchvision.datasets.vision import StandardTransform | |
import glob | |
import os | |
import numpy as np | |
import sys | |
class TinyImageNet(object): |
This file contains hidden or 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
import cv2 | |
import numpy as np | |
from PIL import Image | |
import sys | |
import glob | |
import os | |
import argparse | |
def info(*args, end=False): | |
if not end: |
This file contains hidden or 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
import sys | |
### require tflite >= v2.4.0 | |
import tflite | |
import os | |
from collections import defaultdict | |
from datetime import datetime | |
### TFL3 schema compatible | |
ACTIVATION_DICT = { | |
0 : "NONE", |