Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'fpbpn’ when training with PointNet as the image feature extractor #3

Open
AnarchistKnight opened this issue Jul 15, 2024 · 4 comments

Comments

@AnarchistKnight
Copy link

AnarchistKnight commented Jul 15, 2024

I switched from ResNet18 to PointNet, as said in your paper that PointNet better captures floor boundary. Besides, as presented in the paper, DDPM+PointNet has lower KL-divergence than DDPM+ResNet, which indicates that PointNet might help in fitting the underlying probability distribution. I was curious how mush PointNet helps in MiDiffusion, so I simply switched to PointNet. Unfortunately, KeyError: 'fpbpn' occured at the line 47 of networks\diffusion_scene_layout_mixed.py
room_feature = sample_params["fpbpn"]

May I ask if I missed any procedure to preprocess the data so as to train with PointNet as the image feature extractor?

@AnarchistKnight
Copy link
Author

And I saw the room mask is mapped into a 64 dimensional vector embedding. To me, saving the room boundary polygon coordinates into a \R^{64} vector is much more simple and straight.

@Xmy1120
Copy link

Xmy1120 commented Jul 28, 2024

And I saw the room mask is mapped into a 64 dimensional vector embedding. To me, saving the room boundary polygon coordinates into a \R^{64} vector is much more simple and straight.

Have you solved this problem? I have the same problem

@AnarchistKnight
Copy link
Author

AnarchistKnight commented Sep 4, 2024

And I saw the room mask is mapped into a 64 dimensional vector embedding. To me, saving the room boundary polygon coordinates into a \R^{64} vector is much more simple and straight.

Have you solved this problem? I have the same problem

well,I suggest you just use resnet18

@SiyiHu
Copy link
Collaborator

SiyiHu commented Sep 9, 2024

Most likely you are missing the step to convert the room mask image to fpbpn (denoted as floor_plan_boundary_points_normals in ThreedFront repo). Please refer to this step.

This script first computes floor_plan_ordered_corners, which are ordered corner coordinates of each floor plan, and then samples a fixed number (default:256) of boundary points to ensure the floor plan features are of the same size. The number of corners can have a pretty big range due to curvy floor boundaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants