Traceback (most recent call last):


 "/home/ol18/Codes/TractUncertainty/segmentation_sh_torchIO_PIL MONAI.py", line 378, in <module>

trainer.fit(model) #tune(model)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 509, in fit

results = self.accelerator_backend.train()


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/accelerators/accelerator.py", line 57, in train

return self.train_or_test()


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/accelerators/accelerator.py", line 74, in train_or_test

results = self.trainer.train()


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 560, in train

self.train_loop.run_training_epoch()


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 534, in run_training_epoch

batch_output = self.run_training_batch(batch, batch_idx, dataloader_idx)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 692, in run_training_batch

self.optimizer_step(optimizer, opt_idx, batch_idx, train_step_and_backward_closure)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 475, in optimizer_step

using_lbfgs=is_lbfgs,


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/core/lightning.py", line 1264, in optimizer_step

optimizer.step(closure=optimizer_closure)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/core/optimizer.py", line 286, in step

self.__optimizer_step(*args, closure=closure, profiler_name=profiler_name, **kwargs)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/core/optimizer.py", line 144, in __optimizer_step

optimizer.step(closure=closure, *args, **kwargs)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/torch/optim/lr_scheduler.py", line 67, in wrapper

return wrapped(*args, **kwargs)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context

return func(*args, **kwargs)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/torch/optim/rmsprop.py", line 66, in step

loss = closure()


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 687, in train_step_and_backward_closure

self.trainer.hiddens


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 780, in training_step_and_backward

result = self.training_step(split_batch, batch_idx, opt_idx, hiddens)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 301, in training_step

training_step_output = self.trainer.accelerator_backend.training_step(args)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/accelerators/gpu_accelerator.py", line 71, in training_step

return self._step(self.trainer.model.training_step, args)


 "/home/ol18/miniconda3/envs/tract_uncertainty/lib/python3.6/site-packages/pytorch_lightning/accelerators/gpu_accelerator.py", line 66, in _step

output = model_step(*args)`` 


 "/home/ol18/Codes/TractUncertainty/segmentation_sh_torchIO_PIL MONAI.py", line 224, in training_step

print('train',batch.keys())
AttributeError: 'list' object has no attribute 'keys'

Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/components/sma/sensor.py", line 182, in async_sma

values = await sma.read(used_sensors)


 "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 246, in read

payload = {"destDev": [], "keys": list(set([s.key for s in sensors]))}


 "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 246, in <listcomp>

payload = {"destDev": [], "keys": list(set([s.key for s in sensors]))}
AttributeError: 'str' object has no attribute 'key'
