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

Compare Virtual Staining Models with Metrics #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MattsonCam
Copy link
Member

This pr focuses on showing virtual stain model performances with four metrics across the best models thus far. The models evaluated were determined to be the best models using their respective generator losses. Any constructive feedback is welcome while reviewing this pr.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@d33bs d33bs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! I left a few comments throughout this PR. Generally I focused on the software implementation, I don't have as much insight into the modeling efforts (where you may want to get another set of eyes).

In addition to what I mentioned in the comments I strongly urge for there to be software tests added to this work to help better understand or maintain the modules and classes found in this PR. Generally as code is added it's a good idea to add tests to help ensure there are no unforeseen consequences of what you're developing. That said, it could be that you iteratively add tests external to this PR.

1.develop_vision_models/ImageMetaDataset.py Show resolved Hide resolved
1.develop_vision_models/ImageMetaDataset.py Show resolved Hide resolved
1.develop_vision_models/ImageMetaDataset.py Show resolved Hide resolved
1.develop_vision_models/ImageMetaDataset.py Show resolved Hide resolved
1.develop_vision_models/ImageMetaDataset.py Show resolved Hide resolved
1.develop_vision_models/losses/L1Loss.py Show resolved Hide resolved
1.develop_vision_models/ImageMetaDataset.py Show resolved Hide resolved


class ImageMetaDataset(Dataset):
"""Iterable Image Dataset for Stained Images, which supports applying transformations to the inputs and targets"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line looks a little longer than the usual Python line length expectations. Consider using multiple lines and adding a formatter to check for this type of thing (Black or ruff-format, for example).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll change that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants