This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install farabio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from farabio.data.biodatasets import HistocancerDataset | |
train_dataset = HistocancerDataset(root=".", download=True, train=True) | |
train_dataset.visualize_dataset() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from farabio.data.biodatasets import RetinopathyDataset | |
train_dataset = RetinopathyDataset(root=".", transform=None, download=True) | |
train_dataset.visualize_dataset(9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from farabio.data.biodatasets import DSB18Dataset | |
train_dataset = DSB18Dataset(root=".", transform=None, download=False) | |
train_dataset.visualize_dataset(5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from farabio.data.biodatasets import ChestXrayDataset | |
train_dataset = ChestXrayDataset(root=".", transform=None, download=True) | |
train_dataset.visualize_dataset() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This script summarizes information on system and virtual environment. | |
Modified from https://github.com/facebookresearch/detectron2/raw/master/detectron2/utils/collect_env.py | |
Under Apache License 2.0 | |
Run following in the terminal: | |
$$ git clone https://gist.github.com/tuttelikz/ebd5ab3ffb29cb9399f2596b8f163a4e a && python a/cenv.py | |
Sample output: | |
---------------------- -------------------------------------------------------------------------------------- | |
sys.platform linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pltImgProfile(img_gray, pt1=None, pt2=None): | |
"""Plots image profile (x and y) | |
Parameters | |
---------- | |
img_gray : np.array | |
image (grayscale) | |
pt1 : tuple | |
coordinates of first point (row1, col1) | |
pt2 : tuple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
* MultiprocessingExample.py * | |
Example to use multiprocessing.Pool with map. | |
Copies images from source folder to destination. | |
# Author: San Askaruly | @tuttelikz | |
""" | |
from os import listdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(gca,'position',[0 0 1 1],'units','normalized') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copyfile(fullfile(docroot, 'techdoc','creating_guis',... | |
'examples','simple_gui2*.*')), fileattrib('simple_gui2*.*', '+w'); | |
edit simple_gui2.m |
NewerOlder