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

How to annotate panorama #8

Open
dengzhijie opened this issue Nov 2, 2018 · 8 comments
Open

How to annotate panorama #8

dengzhijie opened this issue Nov 2, 2018 · 8 comments

Comments

@dengzhijie
Copy link

Hello
First, thanks for your sharing .
We want to use new indoor panorama samples for training, but how to annotate panorama as shown in the appendix becomes a trouble for us. Could you share the method or some tools to do the work?
Thank you!
camera_0bc03a051e9d4bed8e9191e263142f17_office_9_frame_equirectangular_domain_
camera_0bc03a051e9d4bed8e9191e263142f17_office_9_frame_equirectangular_domain_

@sunset1995
Copy link
Owner

Hi,
You could try https://github.com/SunDaDenny/PanoAnnotator which is developed in python.
You should get the corner position on the image annotated by above tool.
Constructing boundary/corner probability map from corner position is simple in mathematic.

Good luck ;)

@dengzhijie
Copy link
Author

@sunset1995
Really thanks for your reply!
I will try this way later.In addition,I have another question to consult you.When I use the official model to process panoramic pictures,sometimes we get the result of a corner migration as shown in the annex. How can I get a better result?Can I get a good result after 3D layout optimization?
Thanks much!
Good luck
112_bon

@sunset1995
Copy link
Owner

Hi @dengzhijie
Maybe you could try flipping/horizontal rotation as testing augmentation first.
I suggest flipping, clip right most 33% to left, clip right most 66% to left. After getting the result of each augmented version, undo augmentation and take the mean.
You could reference LayoutNet papers Table1,2,3 for some benchmark of 3D optimization.

@dengzhijie
Copy link
Author

@sunset1995 Thanks! 👍 :)

@glacierwl
Copy link

I have got the corner id position, but I don't know how to get the boundary/corner probability map like the dataset in the repository.Can you tell me ?Thank you @sunset1995

@sunset1995
Copy link
Owner

Hi @glacierwl,

Maybe you can trace the original repo LayoutNet (I'm just simply downloaded the processed datas without processing myself).

Or you can tried my new project on layout estimation: HorizonNet.
For training/finetuning on your own dataset, simply put all image under data/your_datas/*.png and the corner positions on the equirectangular image under data/your_datas/*.txt.
All images should in the size of 512 x 1024 and below is an example of the corners txt:

123 115
123 378
426 141
426 353
680 180
680 318
824 175
824 323

where the first column is x positions and second column is y position on your image.

@glacierwl
Copy link

Actually,I have tested my dataset(panorama+corner position) using HorizonNet before. When I want to test them using LayoutNet, I get stuck in the puzzle about the conversion from corners txt to edge map and corner map. I have found some codes in the original repo,Thank you.@sunset1995

@glacierwl
Copy link

I have generated edge map and corner map from label.txt and panorama.Just revise some codes in this link.

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