Traceback (most recent call last):


 "/home/danieltudosiu/projects/nmpevqvae/code_fine_tuning/experiment.py", line 123, in <module>

conditional_in_channels = iter(data_loader).__next__()[


 "/home/danieltudosiu/projects/nmpevqvae/evenv/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 363, in __next__

data = self._next_data()


 "/home/danieltudosiu/projects/nmpevqvae/evenv/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 403, in _next_data

data = self._dataset_fetcher.fetch(index)
# may raise StopIteration


 "/home/danieltudosiu/projects/nmpevqvae/evenv/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch

data = [self.dataset[idx] for idx in possibly_batched_index]


 "/home/danieltudosiu/projects/nmpevqvae/evenv/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>

data = [self.dataset[idx] for idx in possibly_batched_index]


 "/home/danieltudosiu/projects/nmpevqvae/evenv/lib/python3.6/site-packages/monai/data/dataset.py", line 197, in __getitem__

pre_random_item = self._pre_first_random_cachecheck(self.data[index])


 "/home/danieltudosiu/projects/nmpevqvae/evenv/lib/python3.6/site-packages/monai/data/dataset.py", line 176, in _pre_first_random_cachecheck

json.dumps(item_transformed, sort_keys=True).encode("utf-8")


 "/usr/lib/python3.6/json/__init__.py", line 238, in dumps

**kw).encode(obj)


 "/usr/lib/python3.6/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/lib/python3.6/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/usr/lib/python3.6/json/encoder.py", line 180, in default

o.__class__.__name__)
TypeError: Object of type 'ndarray' is not JSON serializable

Error: Traceback (most recent call last):


 "~/.platformio/penv/lib/python3.9/site-packages/platformio/__main__.py", line 109, in main

cli()
# pylint: disable=no-value-for-parameter


 "~/.platformio/penv/lib/python3.9/site-packages/click/core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "~/.platformio/penv/lib/python3.9/site-packages/click/core.py", line 782, in main

rv = self.invoke(ctx)


 "~/.platformio/penv/lib/python3.9/site-packages/platformio/commands/__init__.py", line 44, in invoke

return super(PlatformioCLI, self).invoke(ctx)


 "~/.platformio/penv/lib/python3.9/site-packages/click/core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "~/.platformio/penv/lib/python3.9/site-packages/click/core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "~/.platformio/penv/lib/python3.9/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "~/.platformio/penv/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func

return f(get_current_context(), *args, **kwargs)


 "~/.platformio/penv/lib/python3.9/site-packages/platformio/commands/debug/command.py", line 117, in cli

debug_options = platform.configure_debug_options(debug_options, ide_data)


 "~/.platformio/platforms/ststm32/platform.py", line 185, in configure_debug_options

server_executable = debug_options["server"]["executable"].lower()
TypeError: 'NoneType' object is not subscriptable
