ste
(Stefano Giomo)
March 17, 2019, 4:21am
16
I’m interested too. I’ve worked on a generic “multi image input” DataBunch for the “human protein atlas” competition.
It should be tuned to accept RGB images instead of GRAY scale and extended to support “missing” images in the case that not all “views” are present.
I’ve ported the original example to data_block api. I’ve tried to do that some times in the last weeks, trying to follow the evolution of library, but now I’ve to say that the actual version of fastai is very easy to customize.
The code that let you read a multi channel image is only:
def openMultiChannelImage(fpArr):
'''
Open multiple images and return a single multi channel image
'''
mat = None
nChannels = len(fpArr)
for i,fp in enumerate(fpArr):
img = PIL.Ima…
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Lesson 2 - Contribute to human protein atlas with data block api"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Try to address the uman protein atlas competition using concepts from lesson2/v3\n",
"\n",
"https://www.kaggle.com/c/human-protein-atlas-image-classification/"
]
},
{
"cell_type": "code",
This file has been truncated. show original
3 Likes