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

hist_dict = dict((key, self.hist.history[key]) for key in self.hist_keys) KeyError: 'ssim' #91

Open
LinirZamir opened this issue Mar 12, 2023 · 3 comments

Comments

@LinirZamir
Copy link

Hi,

I am running a simple test for training, I have all the prerequisites installed and I am training on the default MVTec dataset with the project organized as mentioned in the readme.
This is the line of code I run to train:
python train.py -d mvtec/capsule -a mvtecCAE -b 8 -l ssim -c grayscale

It starts nicely with 10 rounds of epochs, followed by (unknowingly why) a round of 1024 epochs, where it specify a max learning rate of 0.002. At around the 30th epochs of the second round, I get the following error and the program stops:

hist_dict = dict((key, self.hist.history[key]) for key in self.hist_keys) KeyError: 'ssim'

@blukaz
Copy link

blukaz commented Aug 16, 2023

I got the same error

@burn4science
Copy link

I had the same error when using a Tensorflow version >=2.11. The only thing I figured out to help was to downgrade to TF 2.10.1

In case somebody needs it: I used this Docker image:
https://docs.nvidia.com/deeplearning/frameworks/tensorflow-release-notes/rel-22-12.html

@ubterko
Copy link

ubterko commented Dec 22, 2023

I am having the same issue working from google colab. Who else has tried this solution and did it work? How do I go about running this on google colab?

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

4 participants