[Bug] OneCycleLR object has no attribute 'end',(use before super().__init__()) #1401
Closed
2 tasks done
Labels
bug
Something isn't working
Prerequisite
Environment
obvious code bug
bug code:
mmengine/mmengine/optim/scheduler/param_scheduler.py
Line 987 in c65187c
Reproduces the problem - code sample
learning policy
param_scheduler = [
dict(
type="OneCycleLR",
eta_max=2e-4,
pct_start=0.3,
div_factor=50,
final_div_factor=1e3,
)
]
Reproduces the problem - command or script
None
Reproduces the problem - error message
Additional information
Param
end
supports default value, but inOneCycleLR
's init, it use self.end before doing super().init() // self.end was defined in Base class.suggestion:
end - start
but notself.end - self.start
The text was updated successfully, but these errors were encountered: