haidark / WaveletDeconv

Neural network layer code to implement wavelet deconvolutions
34 stars 11 forks source link

Weights for model 'sequential' #6

Open karu2003 opened 1 year ago

karu2003 commented 1 year ago

/bin/python3.8 /workspaces/WaveletDeconv/testWD.py 2023-06-05 09:55:20.305859: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. Testing saving... Traceback (most recent call last): File "/workspaces/WaveletDeconv/testWD.py", line 91, in modelWD.save_weights('testWD_model.h5') File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "/usr/local/lib/python3.8/dist-packages/keras/engine/training.py", line 3540, in _assert_weights_created raise ValueError( ValueError: Weights for model 'sequential' have not yet been created. Weights are created when the model is first called on inputs or build() is called with an input_shape.