shunk031 commited on
Commit
d1bdc0c
1 Parent(s): 3b2b0ce

add notebook for demo (#8)

Browse files

* add notebook for demo

* update README.md

Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +7 -1
  3. notebooks/COCOA_demo.ipynb +3 -0
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.ipynb filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -20,6 +20,7 @@ metrics:
20
  # Dataset Card for COCOA
21
 
22
  [![CI](https://github.com/shunk031/huggingface-datasets_COCOA/actions/workflows/ci.yaml/badge.svg)](https://github.com/shunk031/huggingface-datasets_COCOA/actions/workflows/ci.yaml)
 
23
 
24
  ## Table of Contents
25
  - [Table of Contents](#table-of-contents)
@@ -81,7 +82,12 @@ When loading a specific configuration, users has to append a version dependent s
81
  ```python
82
  import datasets as ds
83
 
84
- dataset = ds.load_dataset("shunk031/COCOA", name="COCO", data_dir="/path/to/cocoa_annotation.tar.gz")
 
 
 
 
 
85
  ```
86
 
87
  #### COCO
 
20
  # Dataset Card for COCOA
21
 
22
  [![CI](https://github.com/shunk031/huggingface-datasets_COCOA/actions/workflows/ci.yaml/badge.svg)](https://github.com/shunk031/huggingface-datasets_COCOA/actions/workflows/ci.yaml)
23
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/shunk031/huggingface-datasets_COCOA/blob/main/notebooks/COCOA_demo.ipynb)
24
 
25
  ## Table of Contents
26
  - [Table of Contents](#table-of-contents)
 
82
  ```python
83
  import datasets as ds
84
 
85
+ dataset = ds.load_dataset(
86
+ path="shunk031/COCOA",
87
+ name="COCO",
88
+ data_dir="/path/to/cocoa_annotation.tar.gz",
89
+ decode_rle=True, # True if Run-length Encoding (RLE) is to be decoded and converted to binary mask.
90
+ )
91
  ```
92
 
93
  #### COCO
notebooks/COCOA_demo.ipynb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d047165a44f92be9a1eec6c35983d26ab0fd1125ccb7ed993f63efc346ea4008
3
+ size 14348415