[255, 0, 0],
[0, 128, 0],
[0, 0, 255],
- [255, 255, 0],
+ [255, 200, 0],
[192, 192, 192],
]
)
nb,
height,
width,
- max_nb_obj=colors.size(0) - 2,
+ max_nb_obj=2,
nb_iterations=2,
):
f_start = torch.zeros(nb, height, width, dtype=torch.int64)
f_end = torch.zeros(nb, height, width, dtype=torch.int64)
n = torch.arange(f_start.size(0))
- for n in range(nb):
+ for n in tqdm.tqdm(range(nb), dynamic_ncols=True, desc="world generation"):
nb_fish = torch.randint(max_nb_obj, (1,)).item() + 1
for c in torch.randperm(colors.size(0) - 2)[:nb_fish].sort().values:
i, j = (