Skip to content

[Bug] 'dict' object has no attribute 'net' #136

Open
@Pinery-lee

Description

我在本地运行给的变化检测的例子时,在运行run_task.py进行训练的时候,报错如下:
...
use_vdl: True
2023-04-17 20:20:17 [INFO] 1024 samples in file ./data/levircd/val.txt
2023-04-17 20:20:20 [INFO] 7120 samples in file ./data/levircd/train.txt
Traceback (most recent call last):
File "run_task.py", line 108, in
cfg['optimizer'].args['parameters'] = model.net.parameters()
AttributeError: 'dict' object has no attribute 'net'
这是怎么回事呢?model是个dict吗?

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions