prs-eth / ForAINet

official source code for paper entitled "Automated forest inventory: analysis of high-density airborne LiDAR point clouds with 3D deep learning"
50 stars 9 forks source link

NotImplementedError #1

Open asdwcx opened 7 months ago

asdwcx commented 7 months ago

when I tried to run eval.py based on the PointGroup-PAPER.pt you provided, a mistake happened: (treeins) (base) root@d8fc5cfcc777:/home/ForAINet-main/PointCloudSegmentation# python eval.py /opt/conda/envs/treeins/lib/python3.8/site-packages/MinkowskiEngine/init.py:36: UserWarning: The environment variable OMP_NUM_THREADS not set. MinkowskiEngine will automatically set OMP_NUM_THREADS=16. If you want to set OMP_NUM_THREADS manually, please export it on the command line before running a python script. e.g. export OMP_NUM_THREADS=12; python your_program.py. It is recommended to set it below 24. warnings.warn( [2024-04-22 10:32:56,977][torch_points3d.trainer][INFO] - DEVICE : cuda [2024-04-22 10:33:09,479][torch_points3d.metrics.model_checkpoint][INFO] - Loading checkpoint from /home/ForAINet-main/PointCloudSegmentation/checkpoint/PointGroup-PAPER.pt Traceback (most recent call last): File "eval.py", line 13, in main trainer = Trainer(cfg) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/trainer.py", line 48, in init self._initialize_trainer() File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/trainer.py", line 90, in _initialize_trainer self._dataset: BaseDataset = instantiate_dataset(self._checkpoint.data_config) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/dataset_factory.py", line 46, in instantiate_dataset dataset = dataset_cls(dataset_config) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/panoptic/treeins.py", line 629, in init self.test_dataset = dataset_cls( File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins.py", line 491, in init super().init(root, grid_size, *args, **kwargs) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins.py", line 187, in init super(TreeinsOriginalFused, self).init(root, transform, pre_transform, pre_filter) File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/in_memory_dataset.py", line 60, in init super().init(root, transform, pre_transform, pre_filter) File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/dataset.py", line 83, in init self._download() File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/dataset.py", line 140, in _download self.download() File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/panoptic/treeins.py", line 562, in download super().download() File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins.py", line 517, in download super().download() File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/in_memory_dataset.py", line 50, in download raise NotImplementedError NotImplementedError I downloaded the FOR-instance dataset and placed it in the correct location ,but I still get this issue, how did you fix it?

bxiang233 commented 7 months ago

when I tried to run eval.py based on the PointGroup-PAPER.pt you provided, a mistake happened: (treeins) (base) root@d8fc5cfcc777:/home/ForAINet-main/PointCloudSegmentation# python eval.py /opt/conda/envs/treeins/lib/python3.8/site-packages/MinkowskiEngine/init.py:36: UserWarning: The environment variable OMP_NUM_THREADS not set. MinkowskiEngine will automatically set OMP_NUM_THREADS=16. If you want to set OMP_NUM_THREADS manually, please export it on the command line before running a python script. e.g. export OMP_NUM_THREADS=12; python your_program.py. It is recommended to set it below 24. warnings.warn( [2024-04-22 10:32:56,977][torch_points3d.trainer][INFO] - DEVICE : cuda [2024-04-22 10:33:09,479][torch_points3d.metrics.model_checkpoint][INFO] - Loading checkpoint from /home/ForAINet-main/PointCloudSegmentation/checkpoint/PointGroup-PAPER.pt Traceback (most recent call last): File "eval.py", line 13, in main trainer = Trainer(cfg) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/trainer.py", line 48, in init self._initialize_trainer() File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/trainer.py", line 90, in _initialize_trainer self._dataset: BaseDataset = instantiate_dataset(self._checkpoint.data_config) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/dataset_factory.py", line 46, in instantiate_dataset dataset = dataset_cls(dataset_config) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/panoptic/treeins.py", line 629, in init self.test_dataset = dataset_cls( File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins.py", line 491, in init super().init(root, grid_size, *args, kwargs) File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins.py", line 187, in init super(TreeinsOriginalFused, self).init(root, transform, pre_transform, pre_filter) File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/in_memory_dataset.py", line 60, in init super().init(root, transform, pre_transform, pre_filter) File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/dataset.py", line 83, in init** self._download() File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/dataset.py", line 140, in _download self.download() File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/panoptic/treeins.py", line 562, in download super().download() File "/home/ForAINet-main/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins.py", line 517, in download super().download() File "/opt/conda/envs/treeins/lib/python3.8/site-packages/torch_geometric/data/in_memory_dataset.py", line 50, in download raise NotImplementedError NotImplementedError I downloaded the FOR-instance dataset and placed it in the correct location ,but I still get this issue, how did you fix it?

Hi, sorry for the late reply. Could you have a look at this issue? Hope it helps: https://github.com/prs-eth/PanopticSegForLargeScalePointCloud/issues/10#issuecomment-2091561194

WangLuo01 commented 4 months ago

I had the exact same problem with him and didn't find a solution

WangLuo01 commented 4 months ago

I had the exact same problem with him and didn't find a solution

bxiang233 commented 4 months ago

I had the exact same problem with him and didn't find a solution

Hi, have you already tried this? https://github.com/prs-eth/PanopticSegForLargeScalePointCloud/issues/10#issuecomment-2091561194

WangLuo01 commented 4 months ago

1721371163923 你好,在更改路径后能运行了,但是会出现这样的情况,想知道我这样是对的嘛?如果等这个过程大概要等多久呢

bxiang233 commented 4 months ago

1721371163923 你好,在更改路径后能运行了,但是会出现这样的情况,想知道我这样是对的嘛?如果等这个过程大概要等多久呢

看起来没问题,等进度条完成就好了。

WangLuo01 commented 4 months ago

运行训练命令时我是可以正常训练的,但是python eval.py就会一直卡在百分之零

bxiang233 commented 4 months ago

运行训练命令时我是可以正常训练的,但是python eval.py就会一直卡在百分之零

啊?没见过这个问题诶……你有更多的线索吗?不然我想不到有什么解决方法

WangLuo01 commented 4 months ago

我现在也不是很清楚,正在进行训练,等结束了我再看一看

WangLuo01 commented 4 months ago

想知道python eval.py大概会运行多久?

WangLuo01 commented 4 months ago

总结一下我遇到的问题和解决方法:(1)NotImplementedError:这个问题应该是因为数据集和预训练模型的路径没有放在PointCloudSegmentation目录下,我模仿作者的文件路径存放后解决了这个问题(2)训练在第31个epoch停止,python eval.py会卡住,我想这两个是一个原因导致,参考作者之前提供的环境文件,把pip下没有安装或者版本不同的更改以后解决了问题

hunanghuan03 commented 3 months ago

总结一下我遇到的问题和解决方法:(1)NotImplementedError:这个问题应该是因为数据集和预训练模型的路径没有放在PointCloudSegmentation目录下,我模仿作者的文件路径存放后解决了这个问题(2)训练在第31个epoch停止,python eval.py会卡住,我想这两个是一个原因导致,参考作者之前提供的环境文件,把pip下没有安装或者版本不同的更改以后解决了问题

您好,请问(1)的NotImplementedError是应该具体改什么路径呢