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
""" | |
Simple Bot to reply to Telegram messages taken from the python-telegram-bot examples. | |
Deployed using heroku. | |
Author: liuhh02 https://medium.com/@liuhh02 | |
""" | |
import logging | |
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
import os |
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
""" | |
Simple Bot to reply to Telegram messages taken from the python-telegram-bot examples. | |
Source: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/echobot2.py | |
""" | |
import logging | |
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
# Enable logging |
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
""" | |
telegrambot.py | |
Starter code to create a telegram bot using the python-telegram-bot library. | |
Includes call to Google Maps API to extract map coordinates from location. | |
Author: liuhh02 https://medium.com/@liuhh02 | |
""" | |
import logging | |
import telegram |
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
""" | |
scale_images.py | |
Function to scale any image to the pixel values of [-1, 1] for GAN input. | |
Author: liuhh02 https://machinelearningtutorials.weebly.com/ | |
""" | |
from PIL import Image | |
import numpy as np | |
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
""" | |
num_channels.py | |
Find number of channels in your image. | |
Author: liuhh02 https://machinelearningtutorials.weebly.com/ | |
""" | |
from PIL import Image | |
import numpy as np |
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
""" | |
pix2pix_combine | |
Combine 2 images from different domains for pix2pix. Make sure images in folderA and folderB have the same name. | |
Folder Structure: | |
folderA | |
|--> train | |
|--> valid (if any) | |
|--> test (if any) | |
folderB | |
|--> train |
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
""" | |
tif_to_nii | |
Convert multiple tiff images in a directory to a single 3D nifti file. | |
Naming Convention: root001_01 - root001_100, root002_01 - root002_100, ... | |
Usage instructions: change the source path (src_path) [represents the path to your tiff images], | |
destination path (dest_path) [represents the path you want to store your 3D nifti file in] and bases | |
[this represents the name of the files] accordingly | |
Author: liuhh02 https://machinelearningtutorials.weebly.com/ |