visheratin commited on
Commit
7b7b6ab
1 Parent(s): 50bbe59

Update nllb_mrl.py

Browse files
Files changed (1) hide show
  1. nllb_mrl.py +2 -3
nllb_mrl.py CHANGED
@@ -54,9 +54,8 @@ class MatryoshkaNllbClip(PreTrainedModel):
54
  self.model = create_model(
55
  config.clip_model_name, output_dict=True
56
  )
57
- pretrained_config = get_pretrained_cfg(config.clip_model_name, "v1")
58
- print(pretrained_config)
59
- pp_cfg = PreprocessCfg(pretrained_config["preprocess_cfg"])
60
  self.transform = image_transform_v2(
61
  pp_cfg,
62
  is_train=False,
 
54
  self.model = create_model(
55
  config.clip_model_name, output_dict=True
56
  )
57
+ preprocess_cfg = get_pretrained_cfg(config.clip_model_name, "v1")
58
+ pp_cfg = PreprocessCfg(preprocess_cfg)
 
59
  self.transform = image_transform_v2(
60
  pp_cfg,
61
  is_train=False,