fix: Fixed the 1st argument name in classmethods (#31907)
Fixed the first argument name in few classmethods.
This commit is contained in:
@@ -177,7 +177,7 @@ class LayoutLMv2Config(PretrainedConfig):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_default_detectron2_config(self):
|
def get_default_detectron2_config(cls):
|
||||||
return {
|
return {
|
||||||
"MODEL.MASK_ON": True,
|
"MODEL.MASK_ON": True,
|
||||||
"MODEL.PIXEL_STD": [57.375, 57.120, 58.395],
|
"MODEL.PIXEL_STD": [57.375, 57.120, 58.395],
|
||||||
|
|||||||
@@ -209,5 +209,5 @@ class LambdaScheduleWrapper:
|
|||||||
return self.fn(*args, **kwargs)
|
return self.fn(*args, **kwargs)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def wrap_scheduler(self, scheduler):
|
def wrap_scheduler(cls, scheduler):
|
||||||
scheduler.lr_lambdas = list(map(self, scheduler.lr_lambdas))
|
scheduler.lr_lambdas = list(map(cls, scheduler.lr_lambdas))
|
||||||
|
|||||||
Reference in New Issue
Block a user