-
Notifications
You must be signed in to change notification settings - Fork 740
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
03_03_vae_digits_train: TypeError: unsupported format string passed to numpy.ndarray.__format__ #73
Comments
On the tensorflow_2 branch. |
It works on the master branch! |
I change this line like below. - checkpoint_filepath=os.path.join(run_folder, "weights/weights-{epoch:03d}-{loss:.2f}.h5")
+ checkpoint_filepath=os.path.join(run_folder, "weights/weights.h5") Then I can run 03_03_vae_digits_train with no error. I create google colab notebook based on 03_03_vae_digits_train. I hope this notebook helps you. |
Considering the Code around this line:
replacing the I tried to figure out what exactly caused the problem but I'm quite unfamiliar with formatting, so I have kind of an idea what |
I faced this same problem. As far as I can tell, the error occurs due to the fact that the return of the loss function is rewritten in the form of a dictionary. To avoid the error, you can remove the last However, in the module "03_04_vae_digits_analysis" I came across the fact that the saved weights in h5 are not loaded into the model. Therefore, I save the weights in .ckpt format. Working on TF2 branch https://github.com/kubokoHappy/GDL_code_kuboko |
The problem is that the loss value is a vector of batch size, so it is required to calculate its mean.
should be replaced by this:
|
I am running on Ubuntu 18.04 with Python 3.6.9 and when running 03_03_vae_digits_train I encounter the following error:
I installed using the newest pip with
pip install -r requirements.txt
and no errors occured and i had to install graphviz.BTW numpy is 1.17.2 as required.
The text was updated successfully, but these errors were encountered: