Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF2 implementation #6

Open
ASALASSA opened this issue Jul 2, 2021 · 1 comment
Open

TF2 implementation #6

ASALASSA opened this issue Jul 2, 2021 · 1 comment

Comments

@ASALASSA
Copy link

ASALASSA commented Jul 2, 2021

Hi Mr Pang.
I have read your paper and I found it very interesting to replicate. Congratulations!

I am currently trying to explore your ideas and to implement them in a fraud prevention context but I found some trouble trying to adapt your code to tf2 and our dataset. I am experimenting problems with the code, particularly inside the custom cost function.

The first one occurs with the ref variable. The framework throws the following error: tf.function-decorated function tried to create variables on non-first call. One solution would be to declare the symbolic variable outside the function but the random sample from which the mean and variance are obtained would always be the same.
On the other hand, for debugging purposes only, we train the model in eager mode and the error we encountered is: assertion failed: [predictions must be> = 0] [Condition x> = y did not hold element-wise: ] ….

Have you or your team ever tried to migrate your code to tf2? It could be very helpful for us your experience.

Thank you.

@GuansongPang
Copy link
Owner

Hi, we didn't have similar problems, but we may release a PyTorch implementation of DevNet later. Stay tuned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants