Image Feature Extraction
Transformers
Safetensors
feature-extraction
custom_code
mranzinger commited on
Commit
cb109ca
·
verified ·
1 Parent(s): f6c0c44

Update hf_model.py

Browse files
Files changed (1) hide show
  1. hf_model.py +2 -0
hf_model.py CHANGED
@@ -97,6 +97,8 @@ class RADIOModel(PreTrainedModel):
97
 
98
  def __init__(self, config: RADIOConfig):
99
  super().__init__(config)
 
 
100
 
101
  RADIOArgs = namedtuple("RADIOArgs", config.args.keys())
102
  args = RADIOArgs(**config.args)
 
97
 
98
  def __init__(self, config: RADIOConfig):
99
  super().__init__(config)
100
+ if hasattr(super(), "post_init"):
101
+ super().post_init()
102
 
103
  RADIOArgs = namedtuple("RADIOArgs", config.args.keys())
104
  args = RADIOArgs(**config.args)