-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error with mask snapshot #357
Comments
Merged
Thanks for the detailed issue. I looked into it and there were a couple small bugs that you were running into. I have fixed them, you can see the details here: #358 As for your questions:
|
mzouink
added a commit
that referenced
this issue
Jan 2, 2025
Fix two bugs: 1) The mask was not being processed appropriately for saving into the snapshot array 2) The prepare_ds method was getting the offset passed in voxels, not physical units Both related to the errors seen in #357
Worked, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
To get better acquainted with
dacapo
, I started trying to train on a toy example but I ran into an error.Data
I created 3D spheres of two different classes, and packaged it into a zarr. The internal organization of the zarr is the following (created here):
I have not set up any mask, the labels are shaped
(2, 256, 256, 256)
where the two classes are semantic masks in different channels.Data is created here: https://github.com/nobias-fht/cellmap_pipelines/blob/main/data/create_toy.py
Training
I built a training pipeline here: https://github.com/nobias-fht/cellmap_pipelines/blob/main/training_toy/train_toy.ipynb
It is a
DistanceTaskConfig
task, with two channels in the ground-truth.Error
Upon training, I directly get an error:
You can find the full traceback in the training notebook.
The reason for the error is that a mask is created (shape
(2, 2, 256, 244, 244)
):dacapo/dacapo/experiments/trainers/gunpowder_trainer.py
Line 390 in 0b3e2d0
and then assigned with a shape mismatch:
dacapo/dacapo/experiments/trainers/gunpowder_trainer.py
Line 404 in 0b3e2d0
Questions
dacapo
expecting instances? How are semantic vs instance handled? I think I got an error when I had more than 2 labels in the ground-truth.Thanks a bunch for the help!
The text was updated successfully, but these errors were encountered: