Skip to content

Instantly share code, notes, and snippets.

@vuiseng9
vuiseng9 / inspect_ov_ir_weights.py
Created February 15, 2023 20:05 — forked from daniil-lyakhov/inspect_ov_ir_weights.py
Way to inspect OpenVino IR model weights (openvino==2022.1.0)
# Openvino==2022.1.0
import sys
from openvino.runtime import Core
DELIMITER = ' | '
if len(sys.argv) < 3:
print("Please provide path to model xml file as a first arg and"
" path to output text file to dump model constants.")
@vuiseng9
vuiseng9 / .gitignore
Created January 7, 2023 19:28 — forked from tkf/.gitignore
A script to locate libpython associated with the given Python executable.
*.pyc
.pytest_cache
@vuiseng9
vuiseng9 / download-vs-code-server.sh
Created September 16, 2022 16:31 — forked from b01/download-vs-code-server.sh
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
set -e
# Auto-Get the latest commit sha via command line.
get_latest_release() {
tag=$(curl --silent "https://api.github.com/repos/${1}/releases/latest" | # Get latest release from GitHub API
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' ) # Pluck JSON value
@vuiseng9
vuiseng9 / timm.ipynb
Created March 4, 2022 20:11 — forked from Chris-hughes10/timm.ipynb
timm.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vuiseng9
vuiseng9 / http_server_auth.py
Created November 4, 2020 02:36 — forked from mauler/http_server_auth.py
Python3 http.server supporting basic HTTP Auth (username/password)
# Extended python -m http.serve with --username and --password parameters for
# basic auth, based on https://gist.github.com/fxsjy/5465353
from functools import partial
from http.server import SimpleHTTPRequestHandler, test
import base64
import os
class AuthHTTPRequestHandler(SimpleHTTPRequestHandler):
@vuiseng9
vuiseng9 / docker-basics.md
Created April 9, 2019 03:09 — forked from dennis-lee/docker-basics.md
My cheat sheet for Docker related things