fix: Fixed the 1st argument name in classmethods (#31907)

Fixed the first argument name in few classmethods.
This commit is contained in:
Sai-Suraj-27
2024-07-11 16:41:50 +05:30
committed by GitHub
parent 48c20700e1
commit 2e48b3e872
2 changed files with 3 additions and 3 deletions

View File

@@ -177,7 +177,7 @@ class LayoutLMv2Config(PretrainedConfig):
)
@classmethod
def get_default_detectron2_config(self):
def get_default_detectron2_config(cls):
return {
"MODEL.MASK_ON": True,
"MODEL.PIXEL_STD": [57.375, 57.120, 58.395],

View File

@@ -209,5 +209,5 @@ class LambdaScheduleWrapper:
return self.fn(*args, **kwargs)
@classmethod
def wrap_scheduler(self, scheduler):
scheduler.lr_lambdas = list(map(self, scheduler.lr_lambdas))
def wrap_scheduler(cls, scheduler):
scheduler.lr_lambdas = list(map(cls, scheduler.lr_lambdas))