Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7ad49db
pixelshuffle decoder
ziw-liu Aug 17, 2023
b232721
Allow sampling multiple patches from the same stack (#35)
ziw-liu Aug 21, 2023
f221d37
add flop counting script
ziw-liu Aug 21, 2023
b15109c
Merge branch '21d-upscale-decoder' of github.com:mehta-lab/viscy into…
ziw-liu Aug 21, 2023
8106388
3d ouput head
ziw-liu Aug 23, 2023
9849efe
add datamodule target dims mode
ziw-liu Aug 23, 2023
84997d7
remove unused argument and configure drop path
ziw-liu Aug 23, 2023
7a08716
move architecture argument to model level
ziw-liu Aug 23, 2023
76c3b31
DLMBL 2023 excercise (#36)
ziw-liu Aug 23, 2023
9a1bfb2
fix channel dimension size for example input
ziw-liu Aug 24, 2023
109c80d
fix argument linking
ziw-liu Aug 24, 2023
cf0b74f
3D prediction writer
ziw-liu Aug 25, 2023
993ee79
update network diagram
ziw-liu Aug 29, 2023
f6fdc08
upgrade flop counting
ziw-liu Aug 29, 2023
f3a7486
shallow 3D (2.5D) SSIM metric
ziw-liu Aug 29, 2023
118d9fc
ms-ssim
ziw-liu Aug 29, 2023
11afc59
mixed loss
ziw-liu Aug 29, 2023
6d498d4
fix arguments
ziw-liu Aug 29, 2023
0aad6d9
fix inheritance
ziw-liu Aug 29, 2023
4d8c895
fix weight checking
ziw-liu Aug 29, 2023
7625709
squeeze metric
ziw-liu Aug 29, 2023
f03e4d4
aggregate metrics
ziw-liu Aug 29, 2023
66a12cb
optinal clamp to stabilize gradient of MS-SSIM
ziw-liu Aug 29, 2023
2789b29
fix calling
ziw-liu Aug 29, 2023
b396328
increase epsilon
ziw-liu Aug 29, 2023
9969255
disable autocast for loss
ziw-liu Aug 30, 2023
4afab39
shuffle validation data for logging
ziw-liu Aug 25, 2023
15e4e45
simplify decoder structure
ziw-liu Aug 26, 2023
0724273
pop-head
ziw-liu Aug 29, 2023
9b868af
fix head expansion
ziw-liu Aug 29, 2023
d126666
init conv weights
ziw-liu Aug 29, 2023
cda0adc
update diagnostic scripts
ziw-liu Aug 30, 2023
945ae9c
fix center slice metrics for 3D output (#51)
ziw-liu Sep 10, 2023
55837dd
Configure the number of image samples logged at each epoch and batch…
ziw-liu Sep 10, 2023
f5cfe5e
do not shuffle validation dataset
ziw-liu Sep 10, 2023
661b75f
fix upsampling weight initialization
ziw-liu Sep 25, 2023
344325d
Merge branch 'main' into midconv-mixed-baseline
ziw-liu Nov 1, 2023
42672ae
fix merge
ziw-liu Nov 1, 2023
6b22a31
fix merge error
ziw-liu Nov 1, 2023
cf32571
fix formatting
ziw-liu Nov 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions examples/demo_dlmbl/convert-solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import argparse
from traitlets.config import Config
import nbformat as nbf
from nbconvert.preprocessors import TagRemovePreprocessor, ClearOutputPreprocessor
from nbconvert.exporters import NotebookExporter


def get_arg_parser():
parser = argparse.ArgumentParser()

parser.add_argument('input_file')
parser.add_argument('output_file')

return parser


def convert(input_file, output_file):
c = Config()
c.TagRemovePreprocessor.remove_cell_tags = ("solution",)
c.TagRemovePreprocessor.enabled = True
c.ClearOutputPreprocesser.enabled = True
c.NotebookExporter.preprocessors = [
"nbconvert.preprocessors.TagRemovePreprocessor",
"nbconvert.preprocessors.ClearOutputPreprocessor"
]

exporter = NotebookExporter(config=c)
exporter.register_preprocessor(TagRemovePreprocessor(config=c), True)
exporter.register_preprocessor(ClearOutputPreprocessor(), True)

output = NotebookExporter(config=c).from_filename(input_file)
with open(output_file, 'w') as f:
f.write(output[0])


if __name__ == "__main__":
parser = get_arg_parser()
args = parser.parse_args()

convert(args.input_file, args.output_file)
print(f'Converted {args.input_file} to {args.output_file}')
Loading