Exception in main training loop: division by zero
Traceback (most recent call last):
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/trainer.py", line 313, in run
while not stop_trigger(self):
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/triggers/interval_trigger.py", line 54, in call
epoch_detail = updater.epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/updaters/standard_updater.py", line 111, in epoch_detail
return self._iterators['main'].epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/iterators/serial_iterator.py", line 96, in epoch_detail
return self.epoch + self.current_position / self._epoch_size
Will finalize trainer extensions and updater before reraising the exception.
Traceback (most recent call last):
File "AU_rcnn/train.py", line 458, in
main()
File "AU_rcnn/train.py", line 449, in main
trainer.run()
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/trainer.py", line 349, in run
six.reraise(*exc_info)
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/six.py", line 719, in reraise
raise value
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/trainer.py", line 313, in run
while not stop_trigger(self):
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/triggers/interval_trigger.py", line 54, in call
epoch_detail = updater.epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/updaters/standard_updater.py", line 111, in epoch_detail
return self._iterators['main'].epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/iterators/serial_iterator.py", line 96, in epoch_detail
return self.epoch + self.current_position / self._epoch_size
ZeroDivisionError: division by zero
I believe it happens because it doesn't see the dataset.
I have downloaded full BP4D dataset and i have putted it in ROOT_PATH + "/BP4D/"
Then, in ROOT_PATH + "/BP4D/" i have F001 - F002... and so on.
What do you think about error?
This is the output that i have obtained
FaceLandMark init call! /home/d.decicco/dataset/landmark_model/shape_predictor_68_face_landmarks.dat
chainer cudnn enabled: True
GPU: 0
loading mean_file in: /home/d.decicco/datasetBP4D/idx/mean_rgb.npy done
load pretrained file: /home/d.decicco/dataset/caffe_model/ResNet-101-model.npz done
directory interessata =/home/d.decicco/dataset/BP4D/
idfile:/home/d.decicco/dataset/BP4D//idx/3_fold/id_trainval_1.txt
read id file done, all examples:0
only one GPU(0) updater
Hi,
when i try to start training obtaining this error
Exception in main training loop: division by zero Traceback (most recent call last): File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/trainer.py", line 313, in run while not stop_trigger(self):
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/triggers/interval_trigger.py", line 54, in call epoch_detail = updater.epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/updaters/standard_updater.py", line 111, in epoch_detail return self._iterators['main'].epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/iterators/serial_iterator.py", line 96, in epoch_detail return self.epoch + self.current_position / self._epoch_size Will finalize trainer extensions and updater before reraising the exception. Traceback (most recent call last):
File "AU_rcnn/train.py", line 458, in
main()
File "AU_rcnn/train.py", line 449, in main trainer.run()
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/trainer.py", line 349, in run six.reraise(*exc_info)
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/six.py", line 719, in reraise raise value
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/trainer.py", line 313, in run while not stop_trigger(self):
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/triggers/interval_trigger.py", line 54, in call epoch_detail = updater.epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/training/updaters/standard_updater.py", line 111, in epoch_detail return self._iterators['main'].epoch_detail
File "/home/d.decicco/.conda/envs/mml_2/lib/python3.7/site-packages/chainer/iterators/serial_iterator.py", line 96, in epoch_detail return self.epoch + self.current_position / self._epoch_size
ZeroDivisionError: division by zero
I believe it happens because it doesn't see the dataset.
I have downloaded full BP4D dataset and i have putted it in ROOT_PATH + "/BP4D/"
Then, in ROOT_PATH + "/BP4D/" i have F001 - F002... and so on.
What do you think about error?
This is the output that i have obtained
FaceLandMark init call! /home/d.decicco/dataset/landmark_model/shape_predictor_68_face_landmarks.dat chainer cudnn enabled: True GPU: 0 loading mean_file in: /home/d.decicco/datasetBP4D/idx/mean_rgb.npy done load pretrained file: /home/d.decicco/dataset/caffe_model/ResNet-101-model.npz done directory interessata =/home/d.decicco/dataset/BP4D/ idfile:/home/d.decicco/dataset/BP4D//idx/3_fold/id_trainval_1.txt read id file done, all examples:0 only one GPU(0) updater