1.m_ = nn.Sequential(*(m(*args) for _ in range(n))) if n > 1 else m(*args) # module
TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given
2.报错原因:
tasks.py中加了两个CBAM!如上图
解决办法:去掉if m in ()中的CBAM!
1.m_ = nn.Sequential(*(m(*args) for _ in range(n))) if n > 1 else m(*args) # module
TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given
2.报错原因:
tasks.py中加了两个CBAM!如上图
解决办法:去掉if m in ()中的CBAM!