Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Tuatini Godard EKami

🏠
Working from home
Block or report user

Report or block EKami

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 GPG pubkey GODARD Tuatini
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBF6eYPcBCADEhBpvhJ9/C6psD031FwUK9/32AHCTMd83B0SIzke55tKKK7JM
6NcSzjux8qw9d1zB3NJ7ziMok3pMSVHEX6QgJOb1O2/PZq7oI60Oao0+O9uTWOaO
Gu9B8rv69tdnu66jdM9copw0w6eokGmQId4pgM0xNSgLgEvh3NV09M0VP49C39XC
D7AF+/VfDjKbaVI5U7yp/KYz6wVnZo9LjEkD/lOga9DEiIdOAJnbUhDVj9S2ZXhW
QE7IO8rUOcUc8AvJXAPaqKQmB2EW6CwUyW3ucm2PTwFVXnH5cu3YhHBbrqUS4lzX
j54Z5MHgX7IjOftElQM0bKTZ8HwPpVUr5OTJABEBAAG0UkdPREFSRCBUdWF0aW5p
IChUaGUgR1BHIGtleSBmb3IgbXkgd2Vic2l0ZSBhbmQgZW1haWwgc2lnbmF0dXJl
KSA8ZW1haWxAdHVhdGluaS5tZT6JAU4EEwEIADgWIQSW3rJ7WQ+eYBAPigy80Dgv
@EKami
EKami / amazon_forest_notebook.ipynb
Created Jul 9, 2018
Planet: Understanding the Amazon deforestation from Space challenge
View amazon_forest_notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View area.py
mask_img = np.array(Image.open(mask.file, mode='r').convert('1'))
# Absolute WSI coordinates
dx = max(patch_x, mask.x)
dx2 = min(patch_x + self.crop_size, mask.x + mask.width)
dy = max(patch_y, mask.y)
dy2 = min(patch_y + self.crop_size, mask.y + mask.height)
# Make the coordinates relative to the mask position
dx = dx - mask.x
View stacktrace.py
Traceback (most recent call last):
File "/Users/Ekami/Programs/anaconda/envs/dl/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/Users/Ekami/Programs/anaconda/envs/dl/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/Ekami/Programs/anaconda/envs/dl/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/Ekami/Programs/anaconda/envs/dl/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/Ekami/Programs/anaconda/envs/dl/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch
View error.py
Error: Failed to start algorithm - Traceback (most recent call last):
File "/opt/algorithm/bin/pipe.py", line 14, in <module>
algorithm = __import__('src.'+config['algoname'], fromlist=["apply"])
File "/opt/algorithm/src/srgan_algorithmia.py", line 6, in <module>
from torchlite.eval import eval
File "/opt/algorithm/dependencies/torchlite/eval/eval.py", line 5, in <module>
from torchlite.data.datasets.srgan import EvalDataset
File "/opt/algorithm/dependencies/torchlite/data/datasets/srgan.py", line 3, in <module>
import torchlite.nn.transforms as ttransforms
File "/opt/algorithm/dependencies/torchlite/nn/transforms.py", line 20, in <module>
View algorithmia1.py
import os
import requests
from io import BytesIO
import Algorithmia
from Algorithmia.acl import ReadAcl
from torchlite.eval import eval
from pathlib import Path
from PIL import Image
import uuid
View gist:fc078fc0d3274d94a3c03364e4b68bd5
import os
import requests
from io import BytesIO
import Algorithmia
from Algorithmia.acl import ReadAcl
from torchlite.eval import eval
from pathlib import Path
from PIL import Image
import uuid
View gist:0b63f44988edf09d31b7652b7222c97c
import gym
from gym import wrappers
env = gym.make('CartPole-v0')
env = wrappers.Monitor(env, '/tmp/cartpole-experiment-1', force=True)
for i_episode in range(20):
observation = env.reset()
for t in range(100):
env.render()
@EKami
EKami / tf-rasp.md
Last active Mar 3, 2020
Building TensorFlow for Raspberry Pi: a Step-By-Step Guide
View tf-rasp.md

Building TensorFlow 1.3.0-rc1 for Raspberry Pi/Ubuntu 16.04: a Step-By-Step Guide

Here you'll learn how to build Tensorflow for the raspberry pi 3 with either the Python API or as a standalone shared library which can be interfaced from the C++ API and eventually as a library which can be used in other languages.

For the C++ library this tutorial will show you how extract tensorflow library and headers to use in any environment you want.

(This tutorial couldn't be possible without the help of the people from the References section)

What You Need

View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

You can’t perform that action at this time.