Skip to content

Instantly share code, notes, and snippets.

View ikuokuo's full-sized avatar
💭
I may be slow to respond.

kuokuo ikuokuo

💭
I may be slow to respond.
View GitHub Profile
@ikuokuo
ikuokuo / onnx_cut.py
Created June 2, 2021 13:21
Cut sub-model from an ONNX model, and update its input/output names or shapes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring
import argparse
import os
import sys
import timeit
import typing
import onnx
@ikuokuo
ikuokuo / data_interp.py
Last active June 16, 2020 06:50
How to use: numpy, matplotlib, pandas, scipy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring
import platform
import sys
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
@ikuokuo
ikuokuo / douban.py
Last active April 15, 2021 08:41
Using Selenium to login a website, Requests to get its html
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring,import-outside-toplevel,invalid-name
import sys
import selenium
print('Selenium version is {}'.format(selenium.__version__))
print('-' * 80)