modify imperceptible adv
@@ -262,8 +262,6 @@ class Attack:
saver = tf.train.Saver([x for x in tf.global_variables() if x.name.startswith("librispeech")])
saver.restore(sess, FLAGS.checkpoint)
-
-
# reassign the variables
sess.run(tf.assign(self.rescale, np.ones((self.batch_size, 1), dtype=np.float32)))
sess.run(tf.assign(self.delta_large, np.zeros((self.batch_size, FLAGS.max_length_dataset), dtype=np.float32)))
@@ -513,4 +511,3 @@ def main(argv):
if __name__ == '__main__':
app.run(main)
-
