Skip to content

Instantly share code, notes, and snippets.

@jccaicedo
jccaicedo / 0_reuse_code.js
Created January 23, 2017 22:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jccaicedo
jccaicedo / deep_profiler_validation.sh
Last active September 21, 2017 01:24
Validate models created by Keras in DeepProfiler
#!/bin/bash
for((k=1;k<100;k++)); do
n=`printf %04d $k`
CUDA_VISIBLE_DEVICES=2 \
python3 learning \
--config /data1/luad/extract.json \
validation \
--model /data1/luad/experiments/keras/5class-1/checkpoint_$n.hdf5 \
> train_acc_$n.txt
# Example instructions to decode ground truth masks in BBBC039
# Masks available at: https://data.broadinstitute.org/bbbc/BBBC039/masks.zip
import skimage.io
import matplotlib.pyplot as plt
import skimage.morphology
# Load one image after uncompressing masks.zip
gt = skimage.io.imread("IXMtest_A02_s1_w1051DAA7C-7042-435F-99F0-1E847D9B42CB.png")