I did some training using this repo and the results are not very satisfactory. After a closer look at the code I found a bug in the ImageHistoryBuffer implementation :
Returns
appendndarray
A copy of arr with values appended to axis. Note that append does not occur in-place: a new array is allocated and filled. If axis is None, out is a flattened array.
The function call itself won't modify the source array and the image buffer will never be filled with anything. This can be verified by printing the buffer size during training.
Here's a fix and modification for better efficiency (list.extend is done in-place to avoid copying the entire image buffer).
I did some training using this repo and the results are not very satisfactory. After a closer look at the code I found a bug in the ImageHistoryBuffer implementation :
np.append(self.image_history_buffer, images[:nb_to_add], axis=0)
Per np.append
The function call itself won't modify the source array and the image buffer will never be filled with anything. This can be verified by printing the buffer size during training.
Here's a fix and modification for better efficiency (list.extend is done in-place to avoid copying the entire image buffer).
Hope this helps!