mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-11 23:46:02 +08:00
make kits19 dataset samples have small sizes (#8591)
This commit is contained in:
2
test/external/external_test_datasets.py
vendored
2
test/external/external_test_datasets.py
vendored
@@ -19,7 +19,7 @@ class ExternalTestDatasets(unittest.TestCase):
|
||||
def _create_samples(self, val, num_samples=2):
|
||||
self._set_seed()
|
||||
|
||||
img, lbl = np.random.rand(190, 392, 392).astype(np.float32), np.random.randint(0, 100, size=(190, 392, 392)).astype(np.uint8)
|
||||
img, lbl = np.random.rand(8, 8, 8).astype(np.float32), np.random.randint(0, 100, size=(8, 8, 8)).astype(np.uint8)
|
||||
img, lbl = nib.Nifti1Image(img, np.eye(4)), nib.Nifti1Image(lbl, np.eye(4))
|
||||
dataset = "val" if val else "train"
|
||||
preproc_pth = Path(tempfile.gettempdir() + f"/{dataset}")
|
||||
|
||||
Reference in New Issue
Block a user