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

assert Config.cls_2 ^ Config.cls_2xmul AssertionError #67

Open
rnlee1998 opened this issue Apr 20, 2021 · 5 comments
Open

assert Config.cls_2 ^ Config.cls_2xmul AssertionError #67

rnlee1998 opened this issue Apr 20, 2021 · 5 comments

Comments

@rnlee1998
Copy link

Namespace(auto_resume=False, backbone='resnet50', base_lr=0.0008, check_point=5000, cls_2=False, cls_lr_ratio=10.0, cls_mul=False, crop_resolution=448, dataset='CUB', decay_step=60, discribe='', epoch=360, resize_resolution=512, resume=None, save_point=5000, start_epoch=0, swap_num=[7, 7], train_batch=16, train_num_workers=16, val_batch=512, val_num_workers=32)
Traceback (most recent call last):
File "e:/graduation_project/object_detection-master/DCL-master/train.py", line 95, in
assert Config.cls_2 ^ Config.cls_2xmul
AssertionError

@dongshaojia
Copy link

Have you solved it?

@rnlee1998
Copy link
Author

rnlee1998 commented Apr 22, 2021

Have you solved it?

No, but I know the reason.
You can print the Config.cls_2 and Config.cls_2xmul and you will find they both are 'False'. Actually, I think Config.cls_2 is 'True' and Config.cls_2xmul is 'False' because of config.py (line 124 and line 125)

@dongshaojia
Copy link

You can use this
parser.add_argument('--cls_mul', dest='cls_mul', action='store_true', default=True)
or use python train.py --data CUB --epoch 360 --backbone resnet50 \ --tb 16 --tnw 16 --vb 512 --vnw 16 \ --lr 0.0008 --lr_step 60 \ --cls_lr_ratio 10 --start_epoch 0 \ --detail training_descibe --size 512 \ --crop 448 --cls_mul --swap_num 7 7 run code.

@rnlee1998
Copy link
Author

You can use this
parser.add_argument('--cls_mul', dest='cls_mul', action='store_true', default=True)
or use python train.py --data CUB --epoch 360 --backbone resnet50 \ --tb 16 --tnw 16 --vb 512 --vnw 16 \ --lr 0.0008 --lr_step 60 \ --cls_lr_ratio 10 --start_epoch 0 \ --detail training_descibe --size 512 \ --crop 448 --cls_mul --swap_num 7 7 run code.

Thank you !!!

@TheodoreBagwe11
Copy link

can u explain the meaning of cls_2 and cls_mul? thanks!

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