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

error in adamw learning rate #63

Open
abhi-84 opened this issue Jun 28, 2020 · 2 comments
Open

error in adamw learning rate #63

abhi-84 opened this issue Jun 28, 2020 · 2 comments

Comments

@abhi-84
Copy link

abhi-84 commented Jun 28, 2020

Hi there
I am geting following error when training on my custom image data. I have 120 images which I am testing as of now. Will put more images once feasibility check is completed.

python train.py --gpu_list=0 --input_size=512 --batch_size=10 --nb_workers=6 --training_data_path=new_train_data --validation_data_path=new_val_data --checkpoint_path=test_east_resnet50/

Traceback (most recent call last):
File "train.py", line 256, in
main()
File "train.py", line 241, in main
opt = AdamW(FLAGS.init_learning_rate)
File "/media/abhi/New Volume/Deep Learning/thermal_scanner/EAST-master/adamw.py", line 31, in init
self.lr = K.variable(lr, name='lr')
AttributeError: can't set attribute

Can you also help me know how to create annotation files automatically so that I can get data in x1,y1,x2,y2,x3,y3,x4,y4 format?

Expecting quick reply
Thanks

@fantasy955
Copy link

fantasy955 commented Mar 22, 2021

It seems that in the new version of Keras lr has been renamed to learning_rate, which is how I changed it.And change the LR for the other places in the code to learning_rate as well.
btw, I want to know if you have run this code successfully so far, because I found problems with the loss function while training my data.

@fantasy955
Copy link

ok, I've solved my problem.
if the text area in gt file is labeled by ### or * will be ignored during training.

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