Skip to content

Instantly share code, notes, and snippets.

Lokesh Soni lokeshsoni

Block or report user

Report or block lokeshsoni

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
View deep_learning_setup_gcp_cpu_ubuntu1804.sh
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
sudo apt install -y git bzip2 vim htop tree zip unzip
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
@lokeshsoni
lokeshsoni / cifar10-darknet-gist0509.ipynb
Created Aug 13, 2018 — forked from daveluo/cifar10-darknet-gist0509.ipynb
Demo of CPU-only Predictions and Pytorch Model Saving/Loading, 5/9/2018
View cifar10-darknet-gist0509.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View api.py
import warnings
warnings.filterwarnings("ignore")
import os
from shutil import copy
from flask import jsonify
from time import time
import numpy as np
from flask import Flask, request, render_template, send_from_directory
from keras.models import load_model
View Tranfer_Learning_Keras_02.py
from keras import applications
from keras.preprocessing.image import ImageDataGenerator
from keras import optimizers
from keras.models import Sequential, Model
from keras.layers import Dropout, Flatten, Dense, GlobalAveragePooling2D
from keras import backend as k
from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard, EarlyStopping
img_width, img_height = 256, 256
View small_xception.py
"""Downsized version of Xception, without residual connections.
"""
from __future__ import print_function
from __future__ import absolute_import
from keras.models import Model
from keras.layers import Dense
from keras.layers import Input
from keras.layers import BatchNormalization
from keras.layers import Activation
@lokeshsoni
lokeshsoni / bash-cheatsheet.sh
Created Dec 30, 2017 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@lokeshsoni
lokeshsoni / nlp.py
Created Apr 10, 2017
checking stop words out of nlp.vocab spacy
View nlp.py
for word in nlp.vocab:
if nlp.vocab[word.orth_].is_stop:
print(word.orth_)
You can’t perform that action at this time.