Lewislou commited on
Commit
31e9a7d
1 Parent(s): 3fa8784

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -83,7 +83,8 @@ for i in range(3):
83
  #config = ModelConfig()
84
  #print(config)
85
  my_model = MyModel.from_pretrained("Lewislou/cellseg_sribd")
86
-
 
87
  with torch.no_grad():
88
  output = my_model(pre_img_data)
89
 
 
83
  #config = ModelConfig()
84
  #print(config)
85
  my_model = MyModel.from_pretrained("Lewislou/cellseg_sribd")
86
+ checkpoints = torch.load('model.pt')
87
+ my_model.load_checkpoints(checkpoints)
88
  with torch.no_grad():
89
  output = my_model(pre_img_data)
90