Skip to content

Instantly share code, notes, and snippets.

Avatar

Prathamesh Juvatkar prats226

View GitHub Profile
@prats226
prats226 / PULL_REQUEST_TEMPLATE.md
Last active Mar 7, 2018
NanoNets pull request template
View PULL_REQUEST_TEMPLATE.md

Description

Include summary of changes, what issue have been fixed and any context if required

How to test this

Include testing instructions to help review faster.
If API needs to be tested or any specific web page needs to be tested or any external service needs to be checked for output.

Checklist:

  • My code follows the style guidelines of this project
View setup_pi_env.sh
#!/bin/bash
sudo apt-get update
sudo docker -v
if [ $? -ne 0 ]; then
curl -fsSL get.docker.com -o get-docker.sh && sudo sh get-docker.sh
fi
sudo nvidia-docker -v
if [ $? -ne 0 ]; then
echo "INSTALLING NVIDIA DOCKER"
@prats226
prats226 / Dockerfile
Created Feb 28, 2018
Dockerfile for pi training
View Dockerfile
FROM tensorflow/tensorflow:1.4.1-gpu
RUN apt-get update && apt-get install -y --no-install-recommends \
python-pip \
protobuf-compiler \
python-pil \
python-lxml \
python-numpy \
python-scipy \
python-dev \
@prats226
prats226 / detect_card_demo.rb
Created Jul 25, 2017
Ruby gist to count number of cars using pretrained model
View detect_card_demo.rb
require 'uri'
require 'net/http'
require 'json'
appId = 'bee0b774-b81c-401a-ad0d-baf5d3eef886'
imageUrl = 'http://www.pngall.com/wp-content/uploads/2016/07/Car-Free-PNG-Image.png'
url = URI('http://app.nanonets.com/ObjectLocalize/?appId=' + appId + '&url=' + imageUrl)
http = Net::HTTP.new(url.host, url.port)
@prats226
prats226 / semantic_transfer_learning.py
Created Jan 31, 2017
Sentiment classification using transfer learning
View semantic_transfer_learning.py
import collections, math, random, numpy
import tensorflow as tf
from sklearn.cross_validation import train_test_split
sentences = """hated the movie it was stupid;\ni hated it so boring;\nawesome the movie was inspiring;\nhated it what a disaster;\nwe hated the movie they were idiotic;\nhe was stupid, hated her;\nstupid movie is boring;\ninspiring ourselves, awesome;\ninspiring me, brilliant;\nwe hated it they were rubbish;\nany inspiring movie is amazing;\nit was stupid what a disaster;\nits stupid, rubbish;\nstupid, idiotic!;\nawesome great movie;\nboring, must be hated;\nhe was boring the movie was stupid;\nboring movie was a disaster;\nboth boring and rubbish;\nso boring and idiotic;\ngreat to amazing;\ndisaster, more than hated;\nbetween disaster and stupid;\ndisaster, so boring;\nawesome movie, brilliant;\ntoo awesome she was amazing;\nhe was brilliant loved it;\ndisaster, only idiotic;\nrubbish movie hated him;\nit was rubbish, why so stupid?;\nrubbish, too boring;\nrubbish, disaster!;\nrubbish, very
View gist:e67bba2ddcd4740f1ee9
Verifying that +prats is my openname (Bitcoin username). https://onename.com/prats