Skip to content

大佬 第6章:python main.py test 进入了 ipdb 命令行(有点懵逼,怎么回事) #31

Closed
@jiangzhonglian

Description

python main.py test        
--test-data-root=data/test1        
--load-model-path='checkpoints/resnet34.pth'        
--use-gpu=False        
--batch-size=30        
--num-workers=12

运行进入了 ipdb 命令行。。有点懵逼。。

user config:
env default
model ResNet34
...
result_file result.csv
max_epoch 10
lr 0.1
lr_decay 0.95
weight_decay 0.0001
parse <bound method parse of <config.DefaultConfig object at 0x104083c50>>
> /opt/git/pytorch-book/chapter6-实战指南/main.py(20)test()
     19     # configure model
---> 20     model = getattr(models, opt.model)().eval()
     21     if opt.load_model_path:

ipdb> 

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions