Skip to content
Snippets Groups Projects

Synthetic collection generation

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -194,7 +194,7 @@ def collection(
rng = np.random.default_rng(seed)
# Initialize the 3D array for the shape
collection = np.empty((collection_shape[0], collection_shape[1], collection_shape[2]), dtype=np.uint8)
collection = np.empty((collection_shape[0], collection_shape[1], collection_shape[2]), dtype=np.uint8).copy()
# Fill the 3D array with synthetic blobs
for i in tqdm(range(num_blobs), desc = 'Blobs placed'):
Loading