Spaces:
Runtime error
Runtime error
# Copyright (c) OpenMMLab. All rights reserved. | |
from mmcv.runner import BaseModule | |
from mmocr.models.builder import ENCODERS | |
class BaseEncoder(BaseModule): | |
"""Base Encoder class for text recognition.""" | |
def forward(self, feat, **kwargs): | |
return feat | |