Skip to content

Examples 5 and 9 return a TypeError. #1107

Description

@Demir-B

In example 5,

the line,
random_idx = rng.integers(0, len(predictions), (4,))
returns the error
TypeError: object of type 'Array' has no len()

when I used the following line it worked:
random_idx = rng.integers(0, predictions.shape[0], (4,))

In example 9,

the line,
len(tile_output["nuclei_segmentation"]["contours"]),
returns the error
TypeError: object of type 'Array' has no len()

when I used the following line it worked:
tile_output["nuclei_segmentation"]["contours"].shape[0],

In example 11, when I opened it in colab its called:
04-patch-extraction.ipynb instead of 11-import-foundation-models.ipynb

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions