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

Finetuned model #10

Open
glacierwl opened this issue Aug 12, 2019 · 7 comments
Open

Finetuned model #10

glacierwl opened this issue Aug 12, 2019 · 7 comments

Comments

@glacierwl
Copy link

Hello,when training, in order to get the finetuned model, what's the meaning of "Finetuned on finetune_general/ 66 images"? I just want to know the process of training and validation,can you help me? Thank you!

@sunset1995
Copy link
Owner

Hi, below are some examples.
Training cuboid layout:

python train.py --train_root_dir data/layoutnet_dataset/train/ --valid_root_dir data/layoutnet_dataset/valid/ --batch_size_train 4 --num_workers 4 --backbone resnet50 --id resnet50_rnn

Inferring on testing images and dump to ./tmp directory:

python inference.py --pth ckpt/resnet50_rnn/best_valid.pth --img_glob "data/layoutnet_dataset/test/img/*png" --output_dir tmp

Finally, quantitatively eval the performance

python eval_cuboid.py --dt_glob "tmp/*" --gt_glob "data/layoutnet_dataset/test/label_cor/*"

@glacierwl
Copy link
Author

Actually,I want to know the process of training general layout(not cuboid layout),because I have no idea about how to get the general room pretrained model.

@glacierwl
Copy link
Author

@sunset1995

@sunset1995
Copy link
Owner

For general manhattan layout:

  • Make sure your dataset is properly annotated as general layout
    • you can use dataset.py to visualize and check the ground truth general layout (f.e. python dataset.py --root_dir data/layoutnet_dataset/finetune_general/ --ith -1 --out_dir /tmp/asdf and visually check the images in /tmp/asdf)
  • No extra argument with train.py
  • Add --relax_cuboid with inference.py
  • Use eval_general.py instead of the original eval_cuboid.py

@sunset1995
Copy link
Owner

I'm going to use Structured3D dataset with my sparse time this week.
Maybe you can see whether your questions are solved then ;)

@glacierwl
Copy link
Author

Thank you for your reply! I am interested in your work :) :)
Now the last question about general layout: The difference about command when training
cuboid layout: python train.py --id resnet50_rnn
general layout: ??? (No extra argument with train.py)
According to my observation about directory:
HorizonNet/
|--data/
| |--finetune_general/
| |--test/
| |--train/
| |--valid/
But I can't find the code about "finetune_general directory" :(
What's the meaning about the instruction?
General room pretrained model :
Trained on train/ 817 pano images first
Finetuned on finetune_general/ 66 images
i.e. How to finetuned on finetune_general/66 images?
(I have got the annotation about general layout, and I am stuck in the next step)

@adalinadalin
Copy link

Thank you for your reply! I am interested in your work :) :) Now the last question about general layout: The difference about command when training cuboid layout: python train.py --id resnet50_rnn general layout: ??? (No extra argument with train.py) According to my observation about directory: HorizonNet/ |--data/ | |--finetune_general/ | |--test/ | |--train/ | |--valid/ But I can't find the code about "finetune_general directory" :( What's the meaning about the instruction? General room pretrained model : Trained on train/ 817 pano images first Finetuned on finetune_general/ 66 images i.e. How to finetuned on finetune_general/66 images? (I have got the annotation about general layout, and I am stuck in the next step)

Hi @glacierwl
Do you know how to use finetune_general/ 66 images for training?

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