hchen725 commited on
Commit
d1f49b5
1 Parent(s): 075bd53

Update geneformer/emb_extractor.py

Browse files
Files changed (1) hide show
  1. geneformer/emb_extractor.py +1 -1
geneformer/emb_extractor.py CHANGED
@@ -565,7 +565,7 @@ class EmbExtractor:
565
  filtered_input_data, cell_state, self.nproc
566
  )
567
  downsampled_data = pu.downsample_and_sort(filtered_input_data, self.max_ncells)
568
- model = pu.load_model(self.model_type, self.num_classes, model_directory)
569
  layer_to_quant = pu.quant_layers(model) + self.emb_layer
570
  embs = get_embs(
571
  model,
 
565
  filtered_input_data, cell_state, self.nproc
566
  )
567
  downsampled_data = pu.downsample_and_sort(filtered_input_data, self.max_ncells)
568
+ model = pu.load_model(self.model_type, self.num_classes, model_directory, mode = "eval")
569
  layer_to_quant = pu.quant_layers(model) + self.emb_layer
570
  embs = get_embs(
571
  model,