Update README.md
Browse files
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 |
|