Closed jeffreyegan closed 2 years ago
Hello,
The problem is that keras losses does not work with complex numbers. For this you have 2 options:
On another note, the example depicted is a small U-NET shaped network designed for segmentation (the output is actually another image, in this case, size 24x24x4) but your labels are for classification tasks, I recommend you implement your own neural network for the task at hand or at least add a flatten and a dense layer at the end.
@NEGU93 Thank you for the quick and useful response! Admittedly I was a little quick with piecing together your ReadMe file's example just to test out the package, my environment, and get the equivalent of a Hello World function running before I started tailoring it to my application. The pointers and info about handling complex values at the activation and loss functions were what I needed. Thank you again so much for the help!!
@NEGU93 first & foremost, thank you for a contribution like this. Development and support for complex-value neural networks is long overdue and much-needed!
I've been starting to explore use of your CVNN library and am encountering an issue out of the gate using your ReadMe as a starting point. Just curious, am I missing something while interacting with tf or did something break on the functional API side? (I'm able to build, train, and test a sequential model based on the ReadMe without issue).
My environment is python 3.8.10, TensorFlow 2.8.0, and CVNN 1.2.13
I've provided my console out and the code example below as well.
Console Out
Example Test Script