update README
Browse files
README.md
CHANGED
@@ -37,7 +37,7 @@ license: cc-by-4.0
|
|
37 |
[Cartoon Set](https://google.github.io/cartoonset/) is a collection of random, 2D cartoon avatar images. The cartoons vary in 10 artwork categories, 4 color categories, and 4 proportion categories, with a total of ~1013 possible combinations. We provide sets of 10k and 100k randomly chosen cartoons and labeled attributes.
|
38 |
|
39 |
#### Usage
|
40 |
-
`cartoonset` provides the images as byte strings, this gives you a bit more flexibility into how to load the data. Here we show 2 ways:
|
41 |
|
42 |
**Using PIL:**
|
43 |
```python
|
@@ -70,7 +70,7 @@ ds = tf.data.Dataset.from_generator(
|
|
70 |
)
|
71 |
|
72 |
def process_fn(sample):
|
73 |
-
img = tf.image.decode_png(sample["img_bytes"], channels=
|
74 |
...
|
75 |
return {"img": img}
|
76 |
|
|
|
37 |
[Cartoon Set](https://google.github.io/cartoonset/) is a collection of random, 2D cartoon avatar images. The cartoons vary in 10 artwork categories, 4 color categories, and 4 proportion categories, with a total of ~1013 possible combinations. We provide sets of 10k and 100k randomly chosen cartoons and labeled attributes.
|
38 |
|
39 |
#### Usage
|
40 |
+
`cartoonset` provides the images as PNG byte strings, this gives you a bit more flexibility into how to load the data. Here we show 2 ways:
|
41 |
|
42 |
**Using PIL:**
|
43 |
```python
|
|
|
70 |
)
|
71 |
|
72 |
def process_fn(sample):
|
73 |
+
img = tf.image.decode_png(sample["img_bytes"], channels=3)
|
74 |
...
|
75 |
return {"img": img}
|
76 |
|