minwoosun commited on
Commit
fbf8b94
1 Parent(s): 989e98d

Update README.md, fix function in demo

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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
  ![example image](example.png)
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
  ![example image](example.png)
63