Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Kaggle cryo #1947

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

Open
ChristofHenkel wants to merge 12 commits into Project-MONAI:main
base: main
Choose a base branch
Loading
from ChristofHenkel:kaggle_cryo
Open

Conversation

@ChristofHenkel
Copy link

@ChristofHenkel ChristofHenkel commented Feb 24, 2025
edited
Loading

Description

Added tutorial based on the 1st place solution of kaggles Cryo-ET competition

ChristofHenkel and others added 8 commits February 24, 2025 15:45
DCO Remediation Commit for christofhenkel <christof.henkel@campus.lmu.de>
I, christofhenkel <christof.henkel@campus.lmu.de>, hereby add my Signed-off-by to this commit: 1db03fd
I, christofhenkel <christof.henkel@campus.lmu.de>, hereby add my Signed-off-by to this commit: 2ffe23d
I, christofhenkel <christof.henkel@campus.lmu.de>, hereby add my Signed-off-by to this commit: df958e7
Signed-off-by: christofhenkel <christof.henkel@campus.lmu.de>
Signed-off-by: ChristofHenkel <christof.henkel@campus.lmu.de>
Signed-off-by: ChristofHenkel <henkel.christof@googlemail.com>
Signed-off-by: ChristofHenkel <christof.henkel@campus.lmu.de>
Signed-off-by: ChristofHenkel <henkel.christof@googlemail.com>
Copy link
Contributor

KumoLiu commented Feb 28, 2025

Copy link

@garciadias garciadias left a comment

Choose a reason for hiding this comment

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

Hi @ChristofHenkel,

thank you for your contribution and congratulations on your great achievement.

I am trying to follow your README.md file instructions to run the code myself, but I have encountered some issues.

I leave you some comments. Please let me know if I am on the right track.

Many thanks,

Rafael

KumoLiu reacted with thumbs up emoji
def load_one(self, experiment_id):

img_fp = f"{self.data_folder}{experiment_id}"
try:
Copy link

@garciadias garciadias Mar 7, 2025

Choose a reason for hiding this comment

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

This try statement will defer the error to line 88, where img will not be defined. Consider replacing the print statement with a raise or instantiating img on the exception.

Copy link

@garciadias garciadias Mar 7, 2025

Choose a reason for hiding this comment

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

While debugging the code, I found that it was erroring out because of this error:

 File "/workspace/data/ds_1.py", line 83, in load_one
 img = np.array(zarr.open(img_fp + '/VoxelSpacing10.000/denoised.zarr')[0]).transpose(2,1,0)
 File "/usr/local/lib/python3.10/dist-packages/zarr/hierarchy.py", line 511, in __getitem__
 raise KeyError(item)

I confirmed the img_fp + '/VoxelSpacing10.000/denoised.zarr' path exists and it does, but zf is empty:

> zf
array([], dtype=float64)

I may have downloaded the data incorrectly. @ChristofHenkel, could you please take a look at this?

The contents of my folder are these:

$ ls /data/train/static/ExperimentRuns/TS_86_3/TS_86_3/VoxelSpacing10.000/denoised.zarr/.zgroup -la
-rw-r--r-- 1 root root 24 Mar 7 17:06 /data/train/static/ExperimentRuns/TS_86_3/TS_86_3/VoxelSpacing10.000/denoised.zarr/.zgroup

Copy link
Author

@ChristofHenkel ChristofHenkel Mar 25, 2025

Choose a reason for hiding this comment

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

/data/train/static/ExperimentRuns/TS_86_3/TS_86_3/VoxelSpacing10.000/denoised.zarr/.zgroup should not have the experiment (TS_86_3) twice in the filepath. Not sure how you neded up with this

Copy link
Author

@ChristofHenkel ChristofHenkel Mar 25, 2025

Choose a reason for hiding this comment

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

I adjusted readme for data settings. Can you try again @garciadias

Copy link

@garciadias garciadias Apr 4, 2025

Choose a reason for hiding this comment

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

Thank you @ChristofHenkel, I proposed some changes at #1969 to simplify the process. Let me know what you think.

Copy link
Contributor

KumoLiu commented Mar 17, 2025

Hi @ChristofHenkel, could you please add the license header?
https://github.com/Project-MONAI/tutorials/actions/runs/13538357621/job/38066337184?pr=1947

All the scripts should start with this copyright:

# Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

Thanks.

ChristofHenkel reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@garciadias garciadias garciadias left review comments

@ericspod ericspod Awaiting requested review from ericspod

@KumoLiu KumoLiu Awaiting requested review from KumoLiu

@Nic-Ma Nic-Ma Awaiting requested review from Nic-Ma

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /