Sorry to bother u. I have the same problem when I use 'bash scripts/pretrain_segmentor.sh.' under attMPTI-main.
Can you help me see what's wrong?
It shows:
/root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
------------ Options -------------
base_widths: [128, 64]
batch_size: 16
cvfold: 0
data_path: ./datasets/S3DIS/blocks_bs1_s1
dataset: s3dis
dgcnn_k: 20
dgcnn_mlp_widths: [512, 256]
dist_method: euclidean
edgeconv_widths: [[64, 64], [64, 64], [64, 64]]
eval_interval: 3
gamma: 0.5
k_connect: 200
k_shot: 1
log_dir: ./log_s3dis/log_pretrain_s3dis_S0
lr: 0.001
model_checkpoint_path: None
n_episode_test: 100
n_iters: 100
n_queries: 1
n_subprototypes: 100
n_way: 2
n_workers: 16
output_dim: 64
pc_attribs: xyzrgbXYZ
pc_augm: True
pc_augm_jitter: 1
pc_augm_mirror_prob: 0
pc_augm_rot: 1
pc_augm_scale: 0
pc_in_dim: 9
pc_npts: 2048
phase: pretrain
pretrain_checkpoint_path: None
pretrain_gamma: 0.5
pretrain_lr: 0.001
pretrain_step_size: 50
pretrain_weight_decay: 0.0001
save_path: ./log_s3dis/
sigma: 1.0
step_size: 5000
use_attention: False
-------------- End ----------------
{0: 'ceiling', 1: 'floor', 2: 'wall', 3: 'beam', 4: 'column', 5: 'window', 6: 'door', 7: 'table', 8: 'chair', 9: 'sofa', 10: 'bookcase', 11: 'board', 12: 'clutter'}
==== class to scans mapping is done ====
class_id: 0 | min_ratio: 0.05 | min_pts: 100 | class_name: ceiling | num of scans: 0
class_id: 1 | min_ratio: 0.05 | min_pts: 100 | class_name: floor | num of scans: 0
class_id: 2 | min_ratio: 0.05 | min_pts: 100 | class_name: wall | num of scans: 0
class_id: 3 | min_ratio: 0.05 | min_pts: 100 | class_name: beam | num of scans: 0
class_id: 4 | min_ratio: 0.05 | min_pts: 100 | class_name: column | num of scans: 0
class_id: 5 | min_ratio: 0.05 | min_pts: 100 | class_name: window | num of scans: 0
class_id: 6 | min_ratio: 0.05 | min_pts: 100 | class_name: door | num of scans: 0
class_id: 7 | min_ratio: 0.05 | min_pts: 100 | class_name: table | num of scans: 0
class_id: 8 | min_ratio: 0.05 | min_pts: 100 | class_name: chair | num of scans: 0
class_id: 9 | min_ratio: 0.05 | min_pts: 100 | class_name: sofa | num of scans: 0
class_id: 10 | min_ratio: 0.05 | min_pts: 100 | class_name: bookcase | num of scans: 0
class_id: 11 | min_ratio: 0.05 | min_pts: 100 | class_name: board | num of scans: 0
class_id: 12 | min_ratio: 0.05 | min_pts: 100 | class_name: clutter | num of scans: 0
Traceback (most recent call last):
File "main.py", line 116, in
pretrain(args)
File "/private/attMPTI-main/runs/pre_train.py", line 98, in pretrain
DATASET = S3DISDataset(args.cvfold, args.data_path)
File "/private/attMPTI-main/dataloaders/s3dis.py", line 38, in init
self.class2scans = self.get_class2scans()
File "/private/attMPTI-main/dataloaders/s3dis.py", line 69, in get_class2scans
with open(class2scans_file, 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './datasets/S3DIS/blocks_bs1_s1/class2scans.pkl'
https://github.com/Na-Z/attMPTI/issues/7#issue-933704367
Sorry to bother u. I have the same problem when I use 'bash scripts/pretrain_segmentor.sh.' under attMPTI-main. Can you help me see what's wrong?
It shows: /root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /root/anaconda3/envs/dgcnn/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) ------------ Options ------------- base_widths: [128, 64] batch_size: 16 cvfold: 0 data_path: ./datasets/S3DIS/blocks_bs1_s1 dataset: s3dis dgcnn_k: 20 dgcnn_mlp_widths: [512, 256] dist_method: euclidean edgeconv_widths: [[64, 64], [64, 64], [64, 64]] eval_interval: 3 gamma: 0.5 k_connect: 200 k_shot: 1 log_dir: ./log_s3dis/log_pretrain_s3dis_S0 lr: 0.001 model_checkpoint_path: None n_episode_test: 100 n_iters: 100 n_queries: 1 n_subprototypes: 100 n_way: 2 n_workers: 16 output_dim: 64 pc_attribs: xyzrgbXYZ pc_augm: True pc_augm_jitter: 1 pc_augm_mirror_prob: 0 pc_augm_rot: 1 pc_augm_scale: 0 pc_in_dim: 9 pc_npts: 2048 phase: pretrain pretrain_checkpoint_path: None pretrain_gamma: 0.5 pretrain_lr: 0.001 pretrain_step_size: 50 pretrain_weight_decay: 0.0001 save_path: ./log_s3dis/ sigma: 1.0 step_size: 5000 use_attention: False -------------- End ----------------
{0: 'ceiling', 1: 'floor', 2: 'wall', 3: 'beam', 4: 'column', 5: 'window', 6: 'door', 7: 'table', 8: 'chair', 9: 'sofa', 10: 'bookcase', 11: 'board', 12: 'clutter'} ==== class to scans mapping is done ==== class_id: 0 | min_ratio: 0.05 | min_pts: 100 | class_name: ceiling | num of scans: 0 class_id: 1 | min_ratio: 0.05 | min_pts: 100 | class_name: floor | num of scans: 0 class_id: 2 | min_ratio: 0.05 | min_pts: 100 | class_name: wall | num of scans: 0 class_id: 3 | min_ratio: 0.05 | min_pts: 100 | class_name: beam | num of scans: 0 class_id: 4 | min_ratio: 0.05 | min_pts: 100 | class_name: column | num of scans: 0 class_id: 5 | min_ratio: 0.05 | min_pts: 100 | class_name: window | num of scans: 0 class_id: 6 | min_ratio: 0.05 | min_pts: 100 | class_name: door | num of scans: 0 class_id: 7 | min_ratio: 0.05 | min_pts: 100 | class_name: table | num of scans: 0 class_id: 8 | min_ratio: 0.05 | min_pts: 100 | class_name: chair | num of scans: 0 class_id: 9 | min_ratio: 0.05 | min_pts: 100 | class_name: sofa | num of scans: 0 class_id: 10 | min_ratio: 0.05 | min_pts: 100 | class_name: bookcase | num of scans: 0 class_id: 11 | min_ratio: 0.05 | min_pts: 100 | class_name: board | num of scans: 0 class_id: 12 | min_ratio: 0.05 | min_pts: 100 | class_name: clutter | num of scans: 0 Traceback (most recent call last): File "main.py", line 116, in
pretrain(args)
File "/private/attMPTI-main/runs/pre_train.py", line 98, in pretrain
DATASET = S3DISDataset(args.cvfold, args.data_path)
File "/private/attMPTI-main/dataloaders/s3dis.py", line 38, in init
self.class2scans = self.get_class2scans()
File "/private/attMPTI-main/dataloaders/s3dis.py", line 69, in get_class2scans
with open(class2scans_file, 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './datasets/S3DIS/blocks_bs1_s1/class2scans.pkl'