Skip to content

Instantly share code, notes, and snippets.

View yiyuezhuo's full-sized avatar
🦆

January Desk yiyuezhuo

🦆
View GitHub Profile
@yiyuezhuo
yiyuezhuo / projection_matrix_julia.ipynb
Last active April 18, 2022 14:25
projection_matrix_julia.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yiyuezhuo
yiyuezhuo / gist:b1cf63ee922589034f222192c6fc49bb
Created March 2, 2019 13:23
convert_latex_into_docx.py
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 2 18:11:45 2019
@author: yiyuezhuo
Require:
python-docx
https://github.com/python-openxml/python-docx/issues/320
https://python-docx.readthedocs.io/en/latest/user/quickstart.html
@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 / 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
*
@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.
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.