Skip to content

Commit

Permalink
[mod] Make minor updates to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodar01 committed Jun 12, 2024
1 parent 7cb9e66 commit 5c15133
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/utils/models/Stardist/AbstractStardist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export abstract class Stardist extends Segmenter {
// (for VHE in particular), see:
// https://github.com/stardist/stardist/blob/468c60552c8c93403969078e51bddc9c2c702035/stardist/models/model2d.py#L543
// https://github.com/stardist/stardist/blob/master/stardist/models/model2d.py#L201C30-L201C30
// and config here (under source -> grid): https://bioimage.io/#/?tags=stardist&id=10.5281%2Fzenodo.6348084&type=model
// and config here (under source -> grid):
// https://bioimage.io/#/?tags=stardist&id=10.5281%2Fzenodo.6348084
// https://bioimage.io/#/?tags=stardist&id=10.5281%2Fzenodo.6338614
// basically, in the case of VHE: 2^3 * 2 = 16
protected _getPaddings(height: number, width: number) {
const padY = height % 16 === 0 ? 0 : 16 - (height % 16);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/models/Stardist/preprocessStardist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const padImage = (image: {
}
});

// no casting, stardistFluo input should be float32
// no casting, stardist input should be float32
return imageTensor as Tensor3D;
};

Expand Down

0 comments on commit 5c15133

Please sign in to comment.