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

name 'amp' is not defined? #9

Open
liaochuanlin opened this issue Sep 15, 2023 · 0 comments
Open

name 'amp' is not defined? #9

liaochuanlin opened this issue Sep 15, 2023 · 0 comments

Comments

@liaochuanlin
Copy link

/home/lcl/anaconda3/envs/PCRLv2/bin/python3.9 /home/lcl/PCRLv2/main.py --data path_to_processedLUNA --model pcrlv2 --b 32 --epochs 240 --lr 1e-3 --output saved_dir --n luna --d 3 --gpus 0,1 --ratio 1.0 --amp
Namespace(data='path_to_processedLUNA', model='pcrlv2', phase='pretask', b=32, epochs=240, lr=0.001, output='saved_dir', n='luna', d=3, workers=4, gpus='0,1', ratio=1.0, momentum=0.9, weight_decay=0.0001, seed=42, amp=True)
pcrlv2_luna_pretask
using the reverse_aug pretrain on luna
total train images 9968, valid images 4240
Traceback (most recent call last):
File "/home/lcl/PCRLv2/main.py", line 50, in
train_pcrlv2_3d(args, data_loader)
File "/home/lcl/PCRLv2/train_3d.py", line 53, in train_pcrlv2_3d
model, optimizer = amp.initialize(model, optimizer, opt_level='O1')
NameError: name 'amp' is not defined

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

1 participant