Unverified Commit 2e48b3e8 authored by Sai-Suraj-27's avatar Sai-Suraj-27 Committed by GitHub
Browse files

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

Fixed the first argument name in few classmethods.
parent 48c20700
......@@ -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],
......
......@@ -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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment