Skip to content

Instantly share code, notes, and snippets.

@kyamagu
kyamagu / Makefile
Created August 29, 2017 02:34
Tasks to maintain a python package
# Tasks to maintain python package.
#
# See https://packaging.python.org/tutorials/distributing-packages/
test:
tox
upload:
python setup.py bdist_wheel --universal
twine upload dist/*
@kyamagu
kyamagu / Caffe2-tutorials.md
Created October 14, 2017 08:35
Personal note on running caffe2 tutorials.

Caffe 2 tutorials

Running a tutorial docker image.

docker run -it --rm -p 8888:8888 caffe2ai/caffe2:c2v0.8.1.cpu.full.ubuntu14.04 \
  sh -c "jupyter notebook --no-browser --ip 0.0.0.0 --allow-root /caffe2/caffe2/python/tutorials"
  • --rm option deletes the docker instance after exits. Remove --rm if needed to interrupt the session.
@kyamagu
kyamagu / dogs-vs-cats.ipynb
Last active June 17, 2019 20:29
Example of Caffe2 fine-tuning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / Linear-regression.ipynb
Created December 11, 2017 06:12
Caffe2 Linear regression tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / SqueezeNet.ipynb
Created December 11, 2017 06:46
Caffe2 deploy tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyamagu
kyamagu / Caffe2+MNIST+tutorial.ipynb
Last active December 11, 2017 07:32
Caffe2 MNIST tutorial
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).

@kyamagu
kyamagu / demo.ipynb
Last active February 24, 2025 17:02
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 / 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 / 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.