Update README.md
Browse files
README.md
CHANGED
|
@@ -113,31 +113,26 @@ sentences = [
|
|
| 113 |
### Loading the Dataset
|
| 114 |
|
| 115 |
You can load this dataset using the Hugging Face `datasets` library:
|
| 116 |
-
|
| 117 |
-
#### Main Branch
|
| 118 |
```python
|
| 119 |
from datasets import load_dataset
|
|
|
|
| 120 |
|
|
|
|
|
|
|
| 121 |
# Load the train split of the colorization dataset
|
| 122 |
train_dataset = load_dataset("nickpai/coco2017-colorization", split="train")
|
| 123 |
-
|
| 124 |
# Load the validation split of the colorization dataset
|
| 125 |
val_dataset = load_dataset("nickpai/coco2017-colorization", split="validation")
|
| 126 |
```
|
| 127 |
|
| 128 |
#### Caption-Free Branch
|
| 129 |
```python
|
| 130 |
-
from datasets import load_dataset
|
| 131 |
-
|
| 132 |
# Load the train split of the colorization dataset from the caption-free branch
|
| 133 |
train_dataset = load_dataset("nickpai/coco2017-colorization", split="train", revision="caption-free")
|
| 134 |
-
|
| 135 |
# Load the validation split of the colorization dataset from the caption-free branch
|
| 136 |
val_dataset = load_dataset("nickpai/coco2017-colorization", split="validation", revision="caption-free")
|
| 137 |
```
|
| 138 |
|
| 139 |
-
|
| 140 |
-
|
| 141 |
## Filtering Criteria
|
| 142 |
|
| 143 |
### 1. Grayscale Images
|
|
|
|
| 113 |
### Loading the Dataset
|
| 114 |
|
| 115 |
You can load this dataset using the Hugging Face `datasets` library:
|
|
|
|
|
|
|
| 116 |
```python
|
| 117 |
from datasets import load_dataset
|
| 118 |
+
```
|
| 119 |
|
| 120 |
+
#### Main Branch
|
| 121 |
+
```python
|
| 122 |
# Load the train split of the colorization dataset
|
| 123 |
train_dataset = load_dataset("nickpai/coco2017-colorization", split="train")
|
|
|
|
| 124 |
# Load the validation split of the colorization dataset
|
| 125 |
val_dataset = load_dataset("nickpai/coco2017-colorization", split="validation")
|
| 126 |
```
|
| 127 |
|
| 128 |
#### Caption-Free Branch
|
| 129 |
```python
|
|
|
|
|
|
|
| 130 |
# Load the train split of the colorization dataset from the caption-free branch
|
| 131 |
train_dataset = load_dataset("nickpai/coco2017-colorization", split="train", revision="caption-free")
|
|
|
|
| 132 |
# Load the validation split of the colorization dataset from the caption-free branch
|
| 133 |
val_dataset = load_dataset("nickpai/coco2017-colorization", split="validation", revision="caption-free")
|
| 134 |
```
|
| 135 |
|
|
|
|
|
|
|
| 136 |
## Filtering Criteria
|
| 137 |
|
| 138 |
### 1. Grayscale Images
|