Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

kuokuo ikuokuo

💭
I may be slow to respond.
View GitHub Profile
@ikuokuo
ikuokuo / onnx_cut.py
Created Jun 2, 2021
Cut sub-model from an ONNX model, and update its input/output names or shapes
View onnx_cut.py
#!/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 / douban.py
Last active Apr 15, 2021
Using Selenium to login a website, Requests to get its html
View douban.py
#!/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)
@ikuokuo
ikuokuo / data_interp.py
Last active Jun 16, 2020
How to use: numpy, matplotlib, pandas, scipy
View data_interp.py
#!/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