I migrated my gist to my website:
- WebSite
https://unbinilium.github.io/
interface CIE { | |
x: number; | |
y: number; | |
z: number; | |
}; | |
interface RGB { | |
r: number; | |
g: number; | |
b: number; |
// JSerializer - An exceptionally fast, stream-oriented, header-only C++ JSON serialization library. | |
// MIT License Copyright (c) 2025 Unbinilium | |
#pragma once | |
#ifndef JSERIALIZER_HPP | |
#define JSERIALIZER_HPP | |
#include <array> | |
#include <cctype> | |
#include <cerrno> |
#pragma once | |
#ifndef RING_BUFFER_HPP | |
#define RING_BUFFER_HPP | |
#include <atomic> | |
#include <cmath> | |
#include <cstddef> | |
#include <cstdint> | |
#include <cstring> | |
#include <limits> |
#pragma once | |
#include <hailo/hailort.hpp> | |
#include <chrono> | |
#include <future> | |
#include <iostream> | |
#include <mutex> | |
#include <string> | |
#include <string_view> |
#pragma once | |
#include <string> | |
#include <vector> | |
#include <utility> | |
#include <torch/torch.h> | |
#include <torch/script.h> | |
#include <opencv2/core.hpp> |
#!/usr/bin/env python3 | |
import os, argparse, secrets | |
import numpy as np | |
from array import * | |
from pathlib import Path | |
from PIL import Image | |
def data_2_mnist(data_folder:Path, img_size:int, output_folder:Path): | |
print("Dataset folder ->", data_folder) |
#pragma once | |
#include <algorithm> | |
#include <string> | |
#include <utility> | |
#include <vector> | |
#include <opencv2/core.hpp> | |
#include <opencv2/dnn.hpp> | |
#include <opencv2/imgproc.hpp> |
I migrated my gist to my website:
https://unbinilium.github.io/
sudo apt-get install -y libopenblas-dev libblas-dev m4 cmake cython python3-dev python3-yaml python3-setuptools libavutil-dev libavcodec-dev libavformat-dev libswscale-dev
git clone --recursive https://github.com/pytorch/pytorch
pushd pytorch
git submodule update --remote third_party/protobuf