Skip to content

test_masked_inference_wsi_dataset temp_tissue_mask* too large #5343

@wyli

Description

@wyli

Describe the bug

HEIGHT = 32914
WIDTH = 46000
def prepare_data():
mask = np.zeros((HEIGHT // 2, WIDTH // 2))
mask[100, 100] = 1
np.save(MASK1, mask)

the synthetic examples take 9G disk space and causes issues:
Screenshot 2022-10-17 at 08 45 25

it should be generated to a temp directory such as:

self.test_dir = tempfile.TemporaryDirectory()
work_dir = self.test_dir.name

I'll address this in #5342

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions