QISIRUI
QISIRUI
请教大佬这个bug应该怎么解决呢  另外,在train_kd.py中,定义优化器与损失函数那里,model是标红的,直接运行,显示没有定义; 当用teacher_model,student_model代替model时,显示下面这个bug。 optimizer = optim.Adam(filter(lambda p: p.requires_grad, model.parameters()), lr=cfg.LR) optimizer = optim.SGD(model.parameters(), lr=cfg.LR, momentum=cfg.MOMENTUM, weight_decay=cfg.WEIGHT_DECAY)  抱拳
File "F:\4-code\Faster-RCNN-TensorFlow-Python3-master\lib\datasets\coco.py", line 16, in import lib.datasets.ds_utils as ds_utils AttributeError: module 'lib' has no attribute 'datasets'