Skip to content

Instantly share code, notes, and snippets.

@kyamagu
kyamagu / sqrtm-benchmark.ipynb
Created October 27, 2022 05:43
sqrtm-benchmark.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / Keras-warmup-learning-rate.ipynb
Last active July 19, 2022 13:26
Keras warmup learning rate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / generate-iccv2021-ics.ipynb
Last active October 11, 2021 02:51
ICCV 2021 ics file generator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / make-miru2021-ics.ipynb
Last active July 26, 2021 12:57
Generate MIRU 2021 program calendar ics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / slow-checkpoint-batchnorm.ipynb
Created January 29, 2020 02:17
slow-checkpoint-batchnorm.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

PyTorch AI platform deployment

This is an example of how to deploy a PyTorch model on GCP AI platform.

Prerequisite

Download a pre-trained model and labels into models/ dir:

mkdir models/
@kyamagu
kyamagu / serializable.ipynb
Created June 20, 2019 06:56
Serializable primitive and custom python objects
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / elementfactory.py
Last active February 4, 2019 08:39
Customized ETree element
import io
import xml.etree.ElementTree as ET
class BaseElement(ET.Element):
def __init__(self, tag, attrib={}, **extra):
super(BaseElement, self).__init__(tag, attrib=attrib, **extra)
self._parent = None
@property
def parent(self):
@kyamagu
kyamagu / demo.ipynb
Last active July 15, 2024 13:57
Dataset class for Automatic Understanding of Image and Video Advertisements (CVPR 2017) http://people.cs.pitt.edu/~kovashka/ads/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / Gridengine-setup.md
Last active April 24, 2023 19:10
How to set up a gridengine

Grid engine

The configuration is the following.

  • node00: Grid master. This node has the alias name grid.
  • others: Grid execution nodes.

Make sure Java is available in all nodes (via default-jre package).