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

training issues #43

Open
sepideh-srj opened this issue Jun 17, 2021 · 2 comments
Open

training issues #43

sepideh-srj opened this issue Jun 17, 2021 · 2 comments

Comments

@sepideh-srj
Copy link

Hi,
I want to can continue training on a pretrained model provided in the resources, is that possible?
I used the run_training script with all of the flags and gave my 'PYTORCH_WEIGHTS.tar' which was converted using convert_weights script.
I am getting the following error:

line 298, in load_checkpoint
 self.optimizer.load_state_dict(state['optimizer'])
AttributeError: 'NoneType' object has no attribute 'load_state_dict'

I also tried to train from scratch but I get this error:

line 198, in train
    self.optimizer.zero_grad()
AttributeError: 'NoneType' object has no attribute 'zero_grad'

Can you help me with these issues please?
Thank you so much.

@Time0o
Copy link
Owner

Time0o commented Jun 18, 2021

Can you tell me exactly how you ran the run_training script? (with a list of all parameters).

@Clayton-Toste
Copy link

I have the same issue and ran:
python3 scripts/run_training --config config/default.json --data-dir data/train --checkpoint-dir checkpoints --log-file log.txt --iterations 10 --iterations-till-checkpoint 2

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

3 participants