- 
                Notifications
    You must be signed in to change notification settings 
- Fork 180
Description
When encoding a large number of images the encoding time will slowly increase until it becomes 2x-3x the time it took to encode the first image, then the script encode_images.py will crash. On my system it always crashes on the 56th image.
The culprit appears to be these lines in perceptual_model.py
self.sess.run(tf.assign(self.features_weight, weight_mask)) self.sess.run(tf.assign(self.ref_img_features, image_features)) self.sess.run(tf.assign(self.ref_weight, image_mask)) self.sess.run(tf.assign(self.ref_img, loaded_image))
I posted a pull request on Puzer's original stylegan-encoder: Puzer#4
but I'm not familiar enough with your changes to know how to fix it. There is more information here: Puzer#3
The changes you have made and collected are a fantastic step forward and actually make frame to frame stylegan animations possible. A fix for this bug would go a long way to helping encode image sequences.