ch3njust1n / smpl

Simultaneous Multi-Party Learning Framework
0 stars 0 forks source link

TypeError: 'NoneType' object is not iterable #49

Closed ch3njust1n closed 6 years ago

ch3njust1n commented 6 years ago
Process Process-1:1:
Traceback (most recent call last):
  File "/home/ubuntu/anaconda2/envs/smpl/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
    self.run()
  File "/home/ubuntu/anaconda2/envs/smpl/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ubuntu/smpl/distributed/parameter_server.py", line 389, in __train
    sess["accuracy"] = Train(conf).validate()
  File "/home/ubuntu/smpl/distributed/trainer.py", line 67, in validate
    for data, target in self.val_loader:
TypeError: 'NoneType' object is not iterable
ch3njust1n commented 6 years ago

Occurring because Trainer.load_data() is not called so self.val_loader is None. Just need to implement training and data