Created
December 7, 2023 01:53
-
-
Save yanboyang713/a5c16cb4980383e1f710877bf1e6ff4f to your computer and use it in GitHub Desktop.
WGAN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- WGAN ----- | |
MAX CLASS 4293 | |
CLASS ID 1 | |
Traceback (most recent call last): | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/./src/runner.py", line 788, in <module> | |
main(case_to_run, repeats=repeats ,rp_threshold=rp_threshold) | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/./src/runner.py", line 517, in main | |
rt, X_train_new, y_train_new = WGANOversampling(X_train=X_train_GAN, | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/src/WGAN.py", line 183, in WGANOversampling | |
X_sample = gen_data(X_train=X_train, y_train=y_train, | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/src/WGAN.py", line 165, in gen_data | |
synthetic_data = fake_data_generation( | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/src/WGAN.py", line 113, in fake_data_generation | |
wasserstein, gen_loss, critic_loss_real, critic_loss_fake = train_step( | |
^^^^^^^^^^^ | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/test/lib/python3.11/site-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler | |
raise e.with_traceback(filtered_tb) from None | |
File "/tmp/__autograph_generated_file_p7zj937.py", line 13, in tf__train_step | |
fake_data = ag__.converted_call(ag__.ld(gen), (ag__.ld(noise),), dict(training=True), fscope) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/test/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler | |
raise e.with_traceback(filtered_tb) from None | |
^^^^^^^^^^^^^^^ | |
File "/tmp/__autograph_generated_files7q6zd95.py", line 10, in tf__call | |
x = ag__.converted_call(ag__.ld(self).input_layer, (ag__.ld(inputs),), None, fscope) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ValueError: in user code: | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/src/WGAN.py", line 54, in train_step * | |
fake_data = gen(noise, training=True) | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/test/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler ** | |
raise e.with_traceback(filtered_tb) from None | |
File "/tmp/__autograph_generated_files7q6zd95.py", line 10, in tf__call | |
x = ag__.converted_call(ag__.ld(self).input_layer, (ag__.ld(inputs),), None, fscope) | |
ValueError: Exception encountered when calling layer 'generator_1' (type Generator). | |
in user code: | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/src/WGAN.py", line 26, in call * | |
x = self.input_layer(inputs) | |
File "/home/yanboyang713/Documents/new/SyntheticOversampling/test/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler ** | |
raise e.with_traceback(filtered_tb) from None | |
ValueError: tf.function only supports singleton tf.Variables created on the first call. Make sure the tf.Variable is only created once or created outside tf.function. See https://www.tensorflow.org/guide/function#creating_tfvariables for more information. | |
Call arguments received by layer 'generator_1' (type Generator): | |
• inputs=tf.Tensor(shape=(8, 10), dtype=float32) | |
python3 ./src/runner.py JS_Vuln 7 12 16837.64s user 912.94s system 220% cpu 2:14:16.35 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment