Skip to content

Instantly share code, notes, and snippets.

View zaccharieramzi's full-sized avatar
🛠️
undecimated

Zaccharie Ramzi zaccharieramzi

🛠️
undecimated
View GitHub Profile
@zaccharieramzi
zaccharieramzi / cdvenv.sh
Created November 27, 2017 10:17
A little convenience `cd` to automatically activate the virtual environment of the directory you are `cd`-ing into. Works on ZSH with auto-completion.
# convenience cd
function cdvenv(){
cd $1;
source venv/bin/activate;
}
compdef _dirs cdvenv

Keybase proof

I hereby claim:

  • I am zaccharieramzi on github.
  • I am zaccharier (https://keybase.io/zaccharier) on keybase.
  • I have a public key ASA1fJLnO3sHlc2TnS3ia8uBuCOupkv16ahYFYrDGljJfwo

To claim this, I am signing this object:

pylint
matplotlib
numpy
tqdm
pandas
jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zaccharieramzi
zaccharieramzi / image_tboard_cback.py
Last active November 23, 2021 16:06
This keras callback outputs the results of an image-to-image model to tensorboard. In this case it was done for a denoiser, but it could also be implemented for segmentation, super-resolution, ...
"""Inspired by https://stackoverflow.com/a/49363251/4332585"""
import io
from keras.callbacks import Callback
import numpy as np
from PIL import Image
from skimage.util import img_as_ubyte
import tensorflow as tf
def make_image(tensor):
@zaccharieramzi
zaccharieramzi / mixedbatchgan.ipynb
Last active June 13, 2020 18:09
MixedBatchGAN
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zaccharieramzi
zaccharieramzi / tb_dev_del_all.sh
Created March 11, 2021 18:26
A utility to delete all past tensorboard dev experiments in order to save some space (limit of 100M scalars).
tensorboard dev list | grep tensorboard | while read line ; do tensorboard dev delete --experiment_id ${line: -23: -1} ; done
#!/bin/bash
offline_runs="$1/offline-run*"
while :
do
for ofrun in $offline_runs
do
wandb sync $ofrun;
done
sleep 5m