Update sample code
Browse files
README.md
CHANGED
@@ -37,7 +37,7 @@ Then `cd SBI-16-3D` and start python like:
|
|
37 |
|
38 |
```python
|
39 |
from datasets import load_dataset
|
40 |
-
dataset = load_dataset("./GBI-16-2D.py", "tiny", data_dir="./data/",
|
41 |
ds = dataset.with_format("np")
|
42 |
```
|
43 |
|
@@ -69,6 +69,6 @@ Then in your python script:
|
|
69 |
|
70 |
```python
|
71 |
from datasets import load_dataset
|
72 |
-
dataset = load_dataset("AstroCompress/GBI-16-2D", "tiny",
|
73 |
ds = dataset.with_format("np")
|
74 |
```
|
|
|
37 |
|
38 |
```python
|
39 |
from datasets import load_dataset
|
40 |
+
dataset = load_dataset("./GBI-16-2D.py", "tiny", data_dir="./data/", writer_batch_size=1, trust_remote_code=True)
|
41 |
ds = dataset.with_format("np")
|
42 |
```
|
43 |
|
|
|
69 |
|
70 |
```python
|
71 |
from datasets import load_dataset
|
72 |
+
dataset = load_dataset("AstroCompress/GBI-16-2D", "tiny", writer_batch_size=1, trust_remote_code=True)
|
73 |
ds = dataset.with_format("np")
|
74 |
```
|