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 / attention-scratch.ipynb
Created June 3, 2024 08:13
attention-scratch.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zaccharieramzi
zaccharieramzi / why_not_good_list_defaults.ipynb
Created February 25, 2022 12:02
why_not_good_list_defaults.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
offline_runs="$1/offline-run*"
while :
do
for ofrun in $offline_runs
do
wandb sync $ofrun;
done
sleep 5m
@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
@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 / 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):
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.
pylint
matplotlib
numpy
tqdm
pandas
jupyter