VAST-AI-Research / TriplaneGaussian

TriplaneGaussian: A new hybrid representation for single-view 3D reconstruction.
https://zouzx.github.io/TriplaneGaussian/
Apache License 2.0
748 stars 50 forks source link

segfault (core dumped):段错误 (核心已转储) #21

Open Huotianci opened 4 months ago

Huotianci commented 4 months ago

Dear author, I am very interested in your work. But some problems occurred while reproducing your code. My hardware and software parameters are: 3090, cuda12.1, python=3.8, pytorch=2.1.2. The deployment of the environment has been completed, but an error occurred during inference: 段错误 (核心已转储)

Here's what I do: Step 1: Enter the command in the terminal: python infer.py --config config.yaml data.image_list=[test.jpg,] --image_preprocess, but an error is reported: 段错误 (核心已转储), as shown in the figure: img_v3_02b7_2cf2ed05-a379-479a-b8ca-984e9bd93c3g Step 2: Print where there may be problems, trying to find which line of code has the problem. Finally, it is found that the error caused by this line of code : self.point_encoder = tgs.find(self.cfg.pointcloud_encoder_cls)(self.cfg.pointcloud_encoder) . Further exploration revealed that it was a problem with the module = importlib.import_module(module_string, package=None) code in tgs.find. The code is located as follows: img_v3_02b7_7704fe0f-bbc6-4a24-a680-99b260f77b7g img_v3_02b7_3640c44e-d51e-4e85-948a-1735788f1f8g

Could you give me some advice on this issue?

I would be very grateful if I could receive any help from you! ! ! Thank you again for such a great job! ! !

zouzx commented 4 months ago

Could you provide more information? E.g., could you locate the specific line in __init__ function of LocalPoolPointnet that causes this?

LucioC commented 4 months ago

I had the same issue. It seems it got fixed after I have installed pytorch-scatter using conda.

conda install pytorch-scatter -c pyg

Huotianci commented 4 months ago

I had the same issue. It seems it got fixed after I have installed pytorch-scatter using conda.

conda install pytorch-scatter -c pyg

Thank you for your reply, I have solved it successfully!