Skip to content

Instantly share code, notes, and snippets.

View yiyuezhuo's full-sized avatar
🦆

January Desk yiyuezhuo

🦆
View GitHub Profile
@yiyuezhuo
yiyuezhuo / preprocess.go
Created December 12, 2021 14:28
Preprocess map to get remap texture, neighbors and centers.
package main
import (
"encoding/json"
"fmt"
"image"
"image/color"
_ "image/jpeg" // support jpeg
"image/png"
"log"
@yiyuezhuo
yiyuezhuo / bayesian_optimization4.ipynb
Created August 14, 2021 15:22
bayesian_optimization4
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yiyuezhuo
yiyuezhuo / resnet18_include_preprocessing_postprocessing-Copy1.ipynb
Created April 15, 2021 06:12
Add some pre-processing and post-processing logic into a pytorch exported classification model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yiyuezhuo
yiyuezhuo / Type6test.java
Created April 15, 2021 01:02
Java call ONNX models using ONNXRUNTIME and opencv
// opencv
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.Size;
import org.opencv.imgproc.Imgproc;
import org.opencv.imgcodecs.Imgcodecs;
@yiyuezhuo
yiyuezhuo / onnx_manipulate_test3.ipynb
Created April 8, 2021 10:10
Add a NMS op node to an exisiting ONNX model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yiyuezhuo
yiyuezhuo / ClientMultipartFormPost.java
Created April 6, 2021 06:51
Java send image to REST API Server and fetch results
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yiyuezhuo
yiyuezhuo / bayesian_optimization3.ipynb
Last active September 4, 2020 20:16
Bayesian optimization with Stheno
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yiyuezhuo
yiyuezhuo / basis_functions_approach_to_GP_exp.ipynb
Created August 15, 2020 08:29
Plots some figures in Practical Hilbert space approximate Bayesian Gaussian processes for probabilistic programming
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.