Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLMBL 2023 excercise #36

Merged
merged 32 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ea12ff6
updated intro and paths
mattersoflight Aug 18, 2023
5c9e7b8
updated figures, tested data loader
mattersoflight Aug 18, 2023
3d7c5a3
setup.sh fetches correct dataset
mattersoflight Aug 19, 2023
ce12fb5
finalized the exercise outline
mattersoflight Aug 19, 2023
6db67b6
semi-final exercise
mattersoflight Aug 20, 2023
3384751
parts 1 and 2 tested, part 3 outline ready
mattersoflight Aug 20, 2023
df68d0c
clearer variables, train with larger patch size
mattersoflight Aug 20, 2023
da1d0d6
fix typo
ziw-liu Aug 20, 2023
20dc0ae
clarify variable names
ziw-liu Aug 20, 2023
cd36ba8
trying to log graph
mattersoflight Aug 20, 2023
7c69271
Merge branch 'dlmbl2023' of https://github.com/mehta-lab/viscy into d…
mattersoflight Aug 20, 2023
ff67b6c
match example size with training
ziw-liu Aug 20, 2023
eff288a
Merge branch 'dlmbl2023' of github.com:mehta-lab/viscy into dlmbl2023
ziw-liu Aug 20, 2023
0170a28
reuse globals
ziw-liu Aug 20, 2023
7cd921e
fix reference
ziw-liu Aug 20, 2023
f7229a8
log sample images from the first batch
ziw-liu Aug 20, 2023
1a3ca4a
wider model
ziw-liu Aug 20, 2023
c342ec7
low LR solution
ziw-liu Aug 20, 2023
9b030a3
fix path
ziw-liu Aug 20, 2023
0c963a4
seed everything
ziw-liu Aug 20, 2023
3e438f6
fix test dataset without masks
ziw-liu Aug 21, 2023
7d5130d
metrics solution
ziw-liu Aug 21, 2023
9d29413
fetch test data, compute metrics
mattersoflight Aug 21, 2023
0cad856
byass cellpose import error due to numpy version conflicts
mattersoflight Aug 21, 2023
46ec10a
final exercise
mattersoflight Aug 21, 2023
7ba15ba
moved files
mattersoflight Aug 21, 2023
f028b7e
fixed formatting - ready for review
mattersoflight Aug 21, 2023
75cfee1
viscy -> VisCy (#34) (#39)
mattersoflight Aug 22, 2023
0db12c7
trying to log graph
mattersoflight Aug 22, 2023
7c5e4c1
log graph
ziw-liu Aug 22, 2023
d7182b6
Merge branch '21d-upscale-decoder' into dlmbl2023
ziw-liu Aug 23, 2023
0407588
black
ziw-liu Aug 23, 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
Binary file added docs/figures/phase_to_nuclei_membrane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions examples/demo_dlmbl/python/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}')
285 changes: 0 additions & 285 deletions examples/demo_dlmbl/python/excercise_1.py

This file was deleted.

Loading