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

Example workflow #45

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Example workflow #45

merged 1 commit into from
Sep 25, 2023

Conversation

ziw-liu
Copy link
Collaborator

@ziw-liu ziw-liu commented Aug 31, 2023

Adds a short description of the virtual staining workflow in its current state.

@ziw-liu ziw-liu added the documentation Improvements or additions to documentation label Aug 31, 2023
Copy link
Member

@mattersoflight mattersoflight left a comment

Choose a reason for hiding this comment

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

LGTM

@mattersoflight
Copy link
Member

This addresses #43.

@mattersoflight mattersoflight linked an issue Aug 31, 2023 that may be closed by this pull request
@edyoshikun
Copy link
Contributor

LGTM! Thanks @ziw-liu

@edyoshikun
Copy link
Contributor

Maybe this is for a separate issue, but I had also trouble running the metrics/test command. I think this was just a lack of time on my side during the course to fully explore pytorch lightning framework. I think that if we run it together @ziw-liu this comment can be solved and we can add further documentation as separate PR.

@Soorya19Pradeep
Copy link
Contributor

Thank for putting together this example @ziw-liu! It was very easy to navigate and documentation was great!
I was able to navigate through the solution and train a 2D HEK nucleus-membrane prediction model using uninfected cells in the TICM0036 dataset acquired on Dragonfly microscope. I was able to test the model by performing prediction on OC43-infected HEK cells at 48hpi.

I did make changes on the line:

batch_size=BATCH_SIZE,

I changed this based on @ziw-liu 's suggestion.

phase2fluor_config = {
    "num_filters": [24, 48, 96, 192, 384],
    "in_channels": 1,
    "out_channels": 2,
    "residual": True,
    "dropout": 0.1,  # dropout randomly turns off weights to avoid overfitting of the model to data.
    "task": "reg",  # reg = regression task.
}

phase2fluor_model = VSUNet(
    architecture="2D",
    model_config=phase2fluor_config.copy(),
    loss_function=torch.nn.functional.l1_loss,
    schedule="WarmupCosine",
    log_num_samples=5,  # Number of samples from each batch to log to tensorboard.
    example_input_yx_shape=YX_PATCH_SIZE,
)

@ziw-liu ziw-liu merged commit 4b16dfb into main Sep 25, 2023
3 checks passed
@ziw-liu ziw-liu deleted the usage-guide branch September 25, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify how to use different stages of VisCy
4 participants