Skip to content

Instantly share code, notes, and snippets.

View Gunnvant's full-sized avatar
💭
Wuxi finger-hold

Gunnvant Singh Gunnvant

💭
Wuxi finger-hold
View GitHub Profile
@Gunnvant
Gunnvant / get_aspects.py
Created July 31, 2018 08:07
Get aspects from a text
import spacy
import pandas as pd
import os
DATA_DIR="path to data"
"""Create a list of common words to remove"""
stop_words=["i", "me", "my", "myself", "we", "our", "ours", "ourselves", "you", "your", "yours", "yourself",
"yourselves", "he", "him", "his", "himself", "she", "her", "hers", "herself", "it", "its", "itself",
"they", "them", "their", "theirs", "themselves", "what", "which", "who", "whom", "this", "that", "these",
"those", "am", "is", "are", "was", "were", "be", "been", "being", "have", "has", "had", "having", "do",
import sys
import os
import cv2
import numpy as np
import tensorflow as tf
sys.path.append("..")
from object_detection.utils import label_map_util
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
## run
## > python get_images.py file_containing_url_csv
import csv
import requests
import os
import sys
import time
def put_images(FILE_NAME):
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
## run
## > python flickr_GetUrl.py tag number_of_images_to_attempt_to_download
from flickrapi import FlickrAPI
import pandas as pd
import sys
key=''
secret=''
def get_urls(image_tag,MAX_COUNT):
@Gunnvant
Gunnvant / Python Anaconda Installation.md
Last active May 8, 2018 10:57
Installing Python Anaconda

This document will guide you on how to install Python 3.xx using Anaconda distribution

Pre-requisites: Make sure the following pre-requisites are satisfied:

  • Windows 7 or above
  • An internet connection
  • 4 Gb of Ram or more
  • Atleast 2 Gb of free hard disk space
  • Download the relevant installer based on your operating system. Note: We are using Python 3.xx in this course, so we recommend that you download latest version of Python 3 from this link. As of today, Python 3.6 is the latest version offered by Anaconda.
@Gunnvant
Gunnvant / opencv3.md
Last active April 11, 2021 12:07
Installing opencv3 in windows

Installing opencv3 in a windows machine

Opencv3 can be easily installed in windows by following the steps discussed below

Pre-requisites

  • Windows version 10
  • Anaconda distribution

Installation

Opencv3 in anaconda is supported by python 3.5+. You can use the following steps to install opencv in windows

  • You need to start anaconda prompt in admninistrator mode (just search for anaconda prompt in search bar then left click and select "Run as administrator" option).
@Gunnvant
Gunnvant / gist:13a33ea5a2eec91d4a5a8958a8222b89
Last active October 4, 2019 15:35
Installing Keras and Tensorflow in Windows

Installing Keras and Tensorflow in Windows

Installing bleeding edge open source software on a windows machine can end up being very challenging. In this gist I will list out the steps needed to install Keras and Tensorflow in windows machine.

Pre-requisites

  • A Windows 10 machine
  • Anaconda python distribution

Steps to set up tensorflow environment

  • Open anaconda prompt on your computer (you can search for "anaconda prompt" in the search bar)
  • Type the following in the anaconda prompt and hot enter: