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
Stack trace: | |
1 ~/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/poetry/utils/env.py:1523 in _run | |
1521│ | |
1522│ if input_: | |
→ 1523│ output = subprocess.run( | |
1524│ command, | |
1525│ stdout=subprocess.PIPE, |
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
<snip> | |
[tool.poetry.dependencies] | |
python = "^3.11" | |
PyMySQL = "^1.0.2" | |
attrs = "^21.4.0" | |
beautifulsoup4 = "^4.11.0" | |
biopython = "^1.79" | |
click = "^8.1.3" | |
click-aliases = "^1.0.1" |
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 keras | |
from keras.layers import Conv3D, MaxPooling3D, Conv3DTranspose, Input | |
from keras.models import Model | |
def FCN3DNet(): | |
inputLayerA = Input(shape=(96,96,96,1)) | |
inputLayerB = Input(shape=(96,96,96,1)) | |
totalInput = keras.layers.concatenate([inputLayerA, inputLayerB]) |
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 SimpleITK as sitk | |
import numpy as np | |
## Just something I had lying around | |
inputImage = "ct.nii" | |
## Load the image. Must be a simpleITK image for this stage to work! | |
startImage = sitk.ReadImage(inputImage) | |
## factors to downsize by, this will take a 512x512x118 image to 128x128x118 |