Skip to content

Instantly share code, notes, and snippets.

View harshilpatel312's full-sized avatar

Harshil Patel harshilpatel312

View GitHub Profile
@harshilpatel312
harshilpatel312 / reverse-ssh.md
Last active August 25, 2021 21:54
Alternative to VPN: reverse-ssh + autossh

Description

You want to access a remote computer from a local computer. The remote computer does not have a public IP, is on its own local network and can access internet.

Solution: To access the remote computer, you need a middleman (proxy server) which is accessible by both, the remote and the local computer. You open an ssh tunnel from remote to middleman. Use that ssh tunnel on local to access the remote computer.

Method

  1. Create VM on a cloud service (like https://www.digitalocean.com/products/droplets/). Get its public IP and password.
  • As a test, access the VM from local computer: ssh hkpatel@203.162.43.12. If successful, proceed. If not, inspect.
@harshilpatel312
harshilpatel312 / MultiObjectTracker.md
Last active October 3, 2023 02:24
Multiple object tracker (OpenCV + Python)

Prerequisites

  1. Install opencv
pip install opencv-python
pip install opencv-contrib-python

Usage

  1. Clone multiobjecttracker.py and pascal_voc_io.py.
@harshilpatel312
harshilpatel312 / Q-Table Learning-Clean.ipynb
Last active April 16, 2018 14:14 — forked from awjuliani/Q-Table Learning-Clean.ipynb
Q-Table learning in OpenAI grid world.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harshilpatel312
harshilpatel312 / object_detection_tutorial.py
Last active June 27, 2018 13:24
Test script for TF's Object Detection API
# coding: utf-8
# NOTE: PUT THIS FILE IN models/research/object_detection/
# Object Detection Demo
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
@harshilpatel312
harshilpatel312 / tf_object_detection.md
Last active April 5, 2021 00:49
README: TF Object Detection

Prerequisites

  1. Install tensorflow-gpu by running
  conda install -c anaconda tensorflow-gpu
  1. Install NVIDIA dependencies for using GPU from https//gist.github.com/msis/108a74d08f55eed48d8521fa968851ea

  2. You need the following libraries

sudo apt-get install protobuf-compiler python-pil python-lxml python-tk
@harshilpatel312
harshilpatel312 / yolo-keras.md
Last active June 27, 2018 13:25
Train YOLO detector to perform object detection on test images/videos