add streaming
Browse files
README.md
CHANGED
@@ -67,7 +67,7 @@ Then `cd SBI-16-3D` and start python like:
|
|
67 |
|
68 |
```python
|
69 |
from datasets import load_dataset
|
70 |
-
dataset = load_dataset("./SBI-16-3D.py", "tiny", data_dir="./data/")
|
71 |
ds = dataset.with_format("np")
|
72 |
```
|
73 |
|
@@ -101,7 +101,7 @@ Then in your python script:
|
|
101 |
```python
|
102 |
from datasets import load_dataset
|
103 |
import numpy
|
104 |
-
dataset = load_dataset("AstroCompress/SBI-16-3D", "tiny")
|
105 |
ds = dataset.with_format("np", columns=["image"], dtype=numpy.uint8)
|
106 |
|
107 |
# or torch
|
|
|
67 |
|
68 |
```python
|
69 |
from datasets import load_dataset
|
70 |
+
dataset = load_dataset("./SBI-16-3D.py", "tiny", data_dir="./data/", streaming=True, trust_remote_code=True)
|
71 |
ds = dataset.with_format("np")
|
72 |
```
|
73 |
|
|
|
101 |
```python
|
102 |
from datasets import load_dataset
|
103 |
import numpy
|
104 |
+
dataset = load_dataset("AstroCompress/SBI-16-3D", "tiny", streaming=True, trust_remote_code=True)
|
105 |
ds = dataset.with_format("np", columns=["image"], dtype=numpy.uint8)
|
106 |
|
107 |
# or torch
|