Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Xuejian Rong ionvision

🎯
Focusing
Block or report user

Report or block ionvision

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ionvision
ionvision / hook_activations.py
Created Aug 5, 2019 — forked from Tushar-N/hook_activations.py
Pytorch code to save activations for specific layers over an entire dataset
View hook_activations.py
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.models as tmodels
from functools import partial
import collections
# dummy data: 10 batches of images with batch size 16
dataset = [torch.rand(16,3,224,224).cuda() for _ in range(10)]
View morandi_color_palette.md
#eee5f8 #eee5f8 #c9c0d3 #c9c0d3 #c7b8a1 #c7b8a1 #faead3 #faead3 #ead0d1 #ead0d1 #a27e7e #a27e7e
#7a7281 #7a7281 #a6a6a8 #a6a6a8 #cac3bb #cac3bb ![#f0ebe5](https:
View Effective_Engineer.md

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@ionvision
ionvision / parallel.py
Created Oct 29, 2018 — forked from thomwolf/parallel.py
Data Parallelism in PyTorch for modules and losses
View parallel.py
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: Hang Zhang, Rutgers University, Email: zhang.hang@rutgers.edu
## Modified by Thomas Wolf, HuggingFace Inc., Email: thomas@huggingface.co
## Copyright (c) 2017-2018
##
## This source code is licensed under the MIT-style license found in the
## LICENSE file in the root directory of this source tree
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"""Encoding Data Parallel"""
@ionvision
ionvision / iterm2-solarized.md
Created May 7, 2018 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@ionvision
ionvision / imagenet1000_clsid_to_human.txt
Created Apr 27, 2018 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class id to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
View imagenet1000_clsid_to_human.txt
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
View cloudSettings
{"lastUpload":"2019-05-02T11:02:57.132Z","extensionVersion":"v3.2.9"}
@ionvision
ionvision / cloudSettings
Last active Sep 30, 2019
VS Code Settings
View cloudSettings
{"lastUpload":"2019-09-30T22:01:28.238Z","extensionVersion":"v3.4.3"}
@ionvision
ionvision / zshrc_osx
Created Dec 7, 2016
~/.zshrc file for macOS
View zshrc_osx
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@ionvision
ionvision / zshrc
Created Dec 7, 2016
~/.zshrc file for Ubuntu
View zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
You can’t perform that action at this time.