poyum commited on
Commit
a4ce92f
·
1 Parent(s): 940662e

fix config ?

Browse files
Files changed (1) hide show
  1. eval.py +2 -2
eval.py CHANGED
@@ -380,8 +380,8 @@ def retrieve_predictions(model_checkpoint, dataset_eval, output_path, tokenizer,
380
  model_path = os.path.dirname(model_checkpoint)
381
 
382
  config_file = os.path.join(model_path, "config.json")
383
- if not os.path.exists(config_file):
384
- raise FileNotFoundError(f"Aucun fichier config.json trouvé dans {model_path}.")
385
 
386
  # Load model
387
  model = transformers.AutoModelForTokenClassification.from_pretrained(model_path)
 
380
  model_path = os.path.dirname(model_checkpoint)
381
 
382
  config_file = os.path.join(model_path, "config.json")
383
+ # if not os.path.exists(config_file):
384
+ # raise FileNotFoundError(f"Aucun fichier config.json trouvé dans {model_path}.")
385
 
386
  # Load model
387
  model = transformers.AutoModelForTokenClassification.from_pretrained(model_path)