This file contains hidden or 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 glob | |
import numpy as np | |
import matplotlib.pyplot as plt | |
fig = plt.figure() | |
ax = plt.subplot(111) | |
def savitzky_golay(y, window_size, order, deriv=0, rate=1): |
This file contains hidden or 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 scipy.io as sio | |
import numpy as np | |
import scipy.misc | |
mat_contents = sio.loadmat('LungTrainingData.mat') | |
#matrix is of the form [x,y,n] | |
#['CT2', 'Right2', 'Left2', '__header__', '__globals__', '__version__', 'Trachea2'] | |
images = mat_contents['CT2'] | |
left_lung = mat_contents['Left2'] |
This file contains hidden or 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 __future__ import print_function | |
import tensorflow as tf | |
import numpy as np | |
from glob import glob | |
import os | |
import TensorflowUtils as utils | |
import read_MITSceneParsingData as scene_parsing | |
import datetime |
This file contains hidden or 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 __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function | |
from tensorflow.python.ops import control_flow_ops | |
from tensorflow.python.ops import math_ops | |
from tensorflow.python.ops import state_ops | |
from tensorflow.python.framework import ops | |
from tensorflow.python.training import optimizer | |
import tensorflow as tf |
This file contains hidden or 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
Install mopidy: ##N.B: You might need to do this as per instructions on `https://docs.mopidy.com/en/latest/installation/debian/` | |
`sudo apt-get update && sudo apt-get install mopidy` | |
Set the mopidy to run automatically via `sudo systemctl enable mopidy` | |
Now we need to set up configuration files. | |
Since we're going to be running mopidy as a service, we need to edit `/etc/mopidy/mopidy.conf`(see https://docs.mopidy.com/en/latest/service/#service) | |
Add the following to to configuration file: |
NewerOlder