tuatruog commited on
Commit
6abe5f8
·
verified ·
1 Parent(s): a80fc33

Update sample code

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