Skip to content

Commit 925be4d

Browse files
author
JiriStipek
committed
fix: add RGB convert into README
1 parent aaa7789 commit 925be4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ from PIL import Image
2121
client = rationai.Client()
2222

2323
# Load an image
24-
image = Image.open("path/to/image.jpg")
24+
image = Image.open("path/to/image.jpg").convert("RGB")
2525

2626
# Classify the image
2727
result = client.models.classify_image("model-name", image)
@@ -77,14 +77,14 @@ Segment an image using the specified model.
7777

7878
**Returns:** Segmentation mask as numpy array with shape `(num_classes, height, width)`
7979

80-
8180
### Slide (`client.slide`)
8281

8382
#### `heatmap(model: str, slide_path: str, tissue_mask_path: str, output_path: str, stride_fraction: float = 0.5, output_bigtiff_tile_height: int = 512, output_bigtiff_tile_width: int = 512, timeout: int = 1000) -> str`
8483

8584
Generate a heatmap for a whole slide image using the specified model.
8685

8786
**Parameters:**
87+
8888
- `model`: The name of the model to use for heatmap generation
8989
- `slide_path`: Path to the whole slide image
9090
- `tissue_mask_path`: Path to the tissue mask for the slide

0 commit comments

Comments
 (0)