ai-image-det-resnet152 / configuration_resnet.py
RishiDarkDevil's picture
Upload model (#1)
a1f442d
raw
history blame contribute delete
343 Bytes
from transformers import PretrainedConfig
class ResnetFeatureExtractorConfig(PretrainedConfig):
model_type = "resnet"
def __init__(self, name = 'resnet152', **kwargs):
if name != 'resnet152':
raise ValueError(f"`name` must be 'resnet152', got {name}.")
self.name = name
super().__init__(**kwargs)