Open davideh29 opened 5 years ago
In "add_to_image_history_buffer" I believe that you have to assign the result of the np.append() to the image buffer array:
self.image_history_buffer = np.append(self.image_history_buffer, images[:nb_to_add], axis=0)
Otherwise the value is not updated. I had to make the change in my implementation to get it to work
https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.append.html
"Note that append does not occur in-place: a new array is allocated and filled"
In "add_to_image_history_buffer" I believe that you have to assign the result of the np.append() to the image buffer array:
self.image_history_buffer = np.append(self.image_history_buffer, images[:nb_to_add], axis=0)
Otherwise the value is not updated. I had to make the change in my implementation to get it to work