You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up the data as a semantic segmentation rather than an instance one. Is 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.
Do you see any obvious reason for this error?
Thanks a bunch for the help!
The text was updated successfully, but these errors were encountered:
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:
dacapo can handle both instance and semantic, it just depends on the task you choose. Affinities will give you instance segmentations, distance transforms and one hot predictions will give you semantic segmentations.
Yes, they were caused by essentially typos that affected the saving of snapshots, and unfortunately saving snapshots were not yet covered by tests and failed in some cases. I will extend the tests to cover saving snapshots
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
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: