Update README.md, fix function in demo
Browse files
README.md
CHANGED
|
@@ -38,7 +38,7 @@ import matplotlib.pyplot as plt
|
|
| 38 |
|
| 39 |
dataset = load_dataset("minwoosun/CholecSeg8k", trust_remote_code=True)
|
| 40 |
|
| 41 |
-
def display_image(image_index):
|
| 42 |
'''Display the image and corresponding three masks.'''
|
| 43 |
|
| 44 |
fig, axs = plt.subplots(2, 2, figsize=(10, 10))
|
|
@@ -57,7 +57,7 @@ def display_image(image_index):
|
|
| 57 |
|
| 58 |
plt.show()
|
| 59 |
|
| 60 |
-
display_image(800) # video index from 0 to 8079
|
| 61 |
```
|
| 62 |

|
| 63 |
|
|
|
|
| 38 |
|
| 39 |
dataset = load_dataset("minwoosun/CholecSeg8k", trust_remote_code=True)
|
| 40 |
|
| 41 |
+
def display_image(dataset, image_index):
|
| 42 |
'''Display the image and corresponding three masks.'''
|
| 43 |
|
| 44 |
fig, axs = plt.subplots(2, 2, figsize=(10, 10))
|
|
|
|
| 57 |
|
| 58 |
plt.show()
|
| 59 |
|
| 60 |
+
display_image(dataset, 800) # video index from 0 to 8079
|
| 61 |
```
|
| 62 |

|
| 63 |
|