jskvrna commited on
Commit
c6e00e0
·
1 Parent(s): d4c0222

Re-enables loading of PointNet models

Browse files

Re-enables loading of PointNet and PointNet class models.
Updates model paths to the correct location.
This allows the training process to use the pre-trained models as intended.

Files changed (1) hide show
  1. train.py +4 -2
train.py CHANGED
@@ -32,10 +32,12 @@ show_visu = False
32
  device = "cuda" if torch.cuda.is_available() else "cpu"
33
 
34
  #pnet_model = load_pointnet_model(model_path="/home/skvrnjan/personal/hoho_pnet/initial_epoch_100.pth", device=device, predict_score=True)
35
- pnet_model = None
 
36
 
37
  #pnet_class_model = load_pointnet_class_model(model_path="/home/skvrnjan/personal/hoho_pnet_edges_v2/initial_epoch_100.pth", device=device)
38
- pnet_class_model = None
 
39
 
40
  #voxel_model = load_3dcnn_model(model_path="/home/skvrnjan/personal/hoho_voxel/initial_epoch_100.pth", device=device, predict_score=True)
41
  voxel_model = None
 
32
  device = "cuda" if torch.cuda.is_available() else "cpu"
33
 
34
  #pnet_model = load_pointnet_model(model_path="/home/skvrnjan/personal/hoho_pnet/initial_epoch_100.pth", device=device, predict_score=True)
35
+ pnet_model = load_pointnet_model(model_path="/mnt/personal/skvrnjan/hoho_pnet/initial_epoch_100.pth", device=device, predict_score=True)
36
+ #pnet_model = None
37
 
38
  #pnet_class_model = load_pointnet_class_model(model_path="/home/skvrnjan/personal/hoho_pnet_edges_v2/initial_epoch_100.pth", device=device)
39
+ pnet_class_model = load_pointnet_class_model(model_path="/mnt/personal/skvrnjan/hoho_pnet_edges_v2/initial_epoch_100.pth", device=device)
40
+ #pnet_class_model = None
41
 
42
  #voxel_model = load_3dcnn_model(model_path="/home/skvrnjan/personal/hoho_voxel/initial_epoch_100.pth", device=device, predict_score=True)
43
  voxel_model = None