Skip to content

Instantly share code, notes, and snippets.

View tranqy's full-sized avatar

Aaron Junod tranqy

View GitHub Profile
@tranqy
tranqy / vgg.py
Created September 4, 2018 10:51
This script will demonstrate how to use a pretrained model, in PyTorch, to make predictions.
"""
This script will demonstrate how to use a pretrained model, in PyTorch,
to make predictions. Specifically, we will be using VGG16 with a cat
image.
References used to make this script:
PyTorch pretrained models doc:
http://pytorch.org/docs/master/torchvision/models.html
PyTorch image transforms example:
http://pytorch.org/tutorials/beginner/data_loading_tutorial.html#transforms
@tranqy
tranqy / track_followers.py
Created February 24, 2016 11:23 — forked from cdwfs/track_followers.py
Python script to track changes to a user's list of Twitter followers
#!/usr/bin/env python
# Usage:
# 1) Install the Python Twitter Tools (PTT) from http://mike.verdone.ca/twitter/
# (or just "easy_install twitter").
# 2) Run "twitter-follow -o blahblahblah" and follow the instructions to set up
# OAuth. This gives the twitter-follow script read-only access to your account.
# Technically, it doesn't even need to be *your* account that you authorize,
# since the script is only querying public follower information.
# 3) Modify the value of "my_handle" to the username of the Twitter user whose