Skip to content

Instantly share code, notes, and snippets.

View ketan4373's full-sized avatar
🏠
Working from home

Ketan Kanjiya ketan4373

🏠
Working from home
View GitHub Profile
@ketan4373
ketan4373 / show.py
Created June 25, 2020 19:29
Minimal code for rendering a numpy array as an image in a Jupyter notebook in memory. Borrowed from the Deep Dream notebook.
import PIL.Image
import IPython.display
def show(a):
IPython.display.display(PIL.Image.fromarray(a))
@ketan4373
ketan4373 / drive_download.py
Created June 22, 2020 18:54
Google drive file downloader
import requests
def download_file_from_google_drive(id, destination):
def get_confirm_token(response):
for key, value in response.cookies.items():
if key.startswith('download_warning'):
return value
return None
@ketan4373
ketan4373 / README.md
Created January 11, 2018 13:31 — forked from otmb/README.md
OpenPose Caffe Model Convert to CoreML Model

Base Refelence at melito

Start Coremltool

Before Setup coremltools

$ export PATH="$HOME/miniconda2/bin:$PATH"
$ source activate coreml