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
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