Paras Shah
commited on
Commit
·
c4592bc
1
Parent(s):
8e7f5dd
Change model load to CPU
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from SingleTreePointCloudLoader import SingleTreePointCloudLoader
|
|
13 |
gc.enable()
|
14 |
|
15 |
with st.spinner("Loading PointNet++ model..."):
|
16 |
-
checkpoint = torch.load('checkpoints/best_model.pth')
|
17 |
classifier = pn2.get_model(num_class=4, normal_channel=False)
|
18 |
classifier.load_state_dict(checkpoint['model_state_dict'])
|
19 |
classifier.eval()
|
|
|
13 |
gc.enable()
|
14 |
|
15 |
with st.spinner("Loading PointNet++ model..."):
|
16 |
+
checkpoint = torch.load('checkpoints/best_model.pth', map_location=torch.device('cpu'))
|
17 |
classifier = pn2.get_model(num_class=4, normal_channel=False)
|
18 |
classifier.load_state_dict(checkpoint['model_state_dict'])
|
19 |
classifier.eval()
|