Update README.md
Browse files
README.md
CHANGED
@@ -201,7 +201,7 @@ ds = load_dataset(
|
|
201 |
# remove unnecessary columns to reduce downloaded data
|
202 |
ds = ds.remove_columns(["diffuse", "specular", "displacement", "opacity", "blend_mask"])
|
203 |
# keep only specified columns
|
204 |
-
ds = ds.select_columns(["basecolor", "normal", "roughness", "
|
205 |
|
206 |
# filter data matching a specific criteria, e.g.: only CC0 materials
|
207 |
ds = ds.filter(lambda x: x["metadata"]["license"] == "CC0")
|
@@ -211,7 +211,7 @@ ds = ds.shuffle(buffer_size=100)
|
|
211 |
|
212 |
# set format for usage in torch
|
213 |
ds = ds.with_format("torch")
|
214 |
-
dl = DataLoader(ds, batch_size=8)
|
215 |
```
|
216 |
|
217 |
## 📜 Citation
|
|
|
201 |
# remove unnecessary columns to reduce downloaded data
|
202 |
ds = ds.remove_columns(["diffuse", "specular", "displacement", "opacity", "blend_mask"])
|
203 |
# keep only specified columns
|
204 |
+
ds = ds.select_columns(["basecolor", "normal", "roughness", "metallic"])
|
205 |
|
206 |
# filter data matching a specific criteria, e.g.: only CC0 materials
|
207 |
ds = ds.filter(lambda x: x["metadata"]["license"] == "CC0")
|
|
|
211 |
|
212 |
# set format for usage in torch
|
213 |
ds = ds.with_format("torch")
|
214 |
+
dl = DataLoader(ds["test"], batch_size=8)
|
215 |
```
|
216 |
|
217 |
## 📜 Citation
|