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
""" | |
Eisen EU COVID-19 challenge starter kit | |
NOTE: you need to register to the challenge, download and unpack the data in | |
order to be able to run the following example. | |
Find more info here: https://www.covid19challenge.eu | |
Information about Eisen can be found at http://eisen.ai -- Join the community on Slack https://bit.ly/2L7i6OL |
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
""" | |
Eisen BraTS2020 challenge starter kit | |
NOTE: you need to register to the challenge, download and unpack the data in | |
order to be able to run the following example. | |
Find more info here: https://www.med.upenn.edu/cbica/brats2020/data.html | |
Information about Eisen can be found at http://eisen.ai -- Join the community on Slack https://bit.ly/2L7i6OL |
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
""" | |
Eisen EMIDEC Challenge starter kit | |
NOTE: you need to register to the challenge, download and unpack the data in | |
order to be able to run the following example. | |
Find more info here: http://emidec.com/ | |
This is released under MIT license. Do what you want with this code. | |
""" |
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
""" | |
Eisen EMIDEC Challenge starter kit | |
NOTE: you need to register to the challenge, download and unpack the data in | |
order to be able to run the following example. | |
Find more info here: http://emidec.com/ | |
This is released under MIT license. Do what you want with this code. | |
""" |
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
""" | |
Eisen EMIDEC Challenge starter kit | |
NOTE: you need to register to the challenge, download and unpack the data in | |
order to be able to run the following example. | |
Find more info here: http://emidec.com/ | |
This is released under MIT license. Do what you want with this code. | |
""" |
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
""" | |
Eisen ABC Challenge starter kit | |
NOTE: you need to register to the challenge, download and unpack the data in | |
order to be able to run the following example. | |
Find more info here: https://abcs.mgh.harvard.edu | |
This is released under MIT license. Do what you want with this code. | |
""" |
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
# You will need to download this data. Exec on your terminal | |
# wget "https://www.dropbox.com/s/duja4l7ce4ka720/tr_im.nii.gz" | |
# wget "https://www.dropbox.com/s/0uq78sh2iqzjofv/tr_mask.nii.gz" | |
# wget "https://www.dropbox.com/s/5amzci0b2sodhpn/val_im.nii.gz" | |
# IMPORTANT!!! | |
# You need to have eisen installed from git via pip install --upgrade git+https://github.com/eisen-ai/eisen-core.git | |
import matplotlib.pyplot as plt | |
from eisen.datasets import MedSegCovid19 |
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
import jwt | |
from datetime import datetime, timedelta | |
JWT_SECRET = '****CHANGE_THIS_TO_KICKASS_SECRET_$#($#@(&$(_CHANGE_THIS_TO_KICKASS_SECRET_#*@#*(@_CHANGE_THIS_TO_KICKASS_SECRET****' | |
JWT_ALGORITHM = 'HS256' | |
JWT_EXP_DELTA_SECONDS = 900 | |
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
import hashlib, binascii, os | |
from sqlalchemy import create_engine | |
from sqlalchemy import Table, Column, String, MetaData, select, and_ | |
def hash_passwd(passwd): | |
"""Hash a password for storing.""" | |
salt = hashlib.sha256(os.urandom(60)).hexdigest().encode('ascii') |
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
import json | |
from sqlalchemy import create_engine | |
from sqlalchemy import Table, Column, String, MetaData | |
class DB: | |
def __init__(self, user, password, host, port): | |
self.user = user | |
self.password = password |
NewerOlder