I migrated my gist to my website:
- WebSite
https://unbinilium.github.io/
| #pragma once | |
| #ifndef ENCODER_HPP | |
| #define ENCODER_HPP | |
| #include <algorithm> | |
| #include <array> | |
| #include <cerrno> | |
| #include <cmath> | |
| #include <cstddef> | |
| #include <cstdint> |
| 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 <cerrno> | |
| #include <charconv> |
| #pragma once | |
| #ifndef RING_BUFFER_HPP | |
| #define RING_BUFFER_HPP | |
| #include "logger.hpp" | |
| #include <atomic> | |
| #include <cmath> | |
| #include <cstddef> | |
| #include <cstdint> |
| #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/