Closed Monalsingh closed 1 year ago
Hi @Monalsingh
It is caused by mismatched weights. I will update the weights and test them again. Just give me a few hours to fix it.
Best,
@voidrank Looking forward to the update!
Best,
@voidrank Looking forward to run some inference on the final model. Please update the links once you are done testing.
Thanks,
Sorry, guys. I was super busy with ICML submissions. I will update it when I have time.
@voidrank are the weight links updated now?
@ameyparanjape, I almost forgot this. I will work on this later this week. Thanks for reminding me of this issue.
@ameyparanjape, I almost forgot this. I will work on this later this week. Thanks for reminding me of this issue.
Sorry but I still have the same error when using the pre-trained model.
@voidrank will these be updated before the TAO 5.0 release?
@ameyparanjape well, unfortunately, no. Sorry about that, but I believe TAO 5.0 will be released very soon.
Hi @Monalsingh @WeiChihChern @ameyparanjape
Can you try this link? It should work.
https://drive.google.com/file/d/1H952BJWS3QtslG3TqyS8kXJl-Zx3AI8H/view?usp=share_link
Hi, @voidrank
Thanks for updating, this new link works. But when I evaluated on COCO val set, this ckpt gave a low mIoU( See logs below). Should there be any changes when running with this ckpt?
Validation DataLoader 0: 100%|███████████████████████████████████████████████████████████████| 1313/1313 [03:29<00:00, 6.27it/s]val/mIoU: 0.3425881266593933
val/mIoU_things tensor(0.3570, device='cuda:0')
val/mIoU_semistuff tensor(0.2514, device='cuda:0')
/opt/conda/lib/python3.8/site-packages/torchmetrics/utilities/prints.py:36: UserWarning: The compute
method of metric MIoUMetrics was called before the update
method which may lead to errors, as metric states have not yet been updated.
warnings.warn(*args, **kwargs)
val/mIoU_small: 0.3508264720439911
val/mIoU_medium: 0.30977723002433777
val/mIoU_large: 0.31840550899505615
Validation DataLoader 0: 100%|███████████████████████████████████████████████████████████████| 1313/1313 [03:33<00:00, 6.16it/s]
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Validate metric DataLoader 0
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
val/mIoU 0.3425881564617157
val/mIoU_large 0.31840550899505615
val/mIoU_medium 0.30977723002433777
val/mIoU_small 0.3508264720439911
val/mIoU_stuff 0.24615158140659332
val/mIoU_things 0.35705024003982544
As a comparison, here is metric calculated with my ckpt trained for 6 epochs:
Validation DataLoader 0: 100%|███████████████████████████████████████████████████████████████| 1313/1313 [03:06<00:00, 7.02it/s]val/mIoU: 0.7872997522354126
val/mIoU_things tensor(0.7871, device='cuda:0')
val/mIoU_semistuff tensor(0.7988, device='cuda:0')
/opt/conda/lib/python3.8/site-packages/torchmetrics/utilities/prints.py:36: UserWarning: The compute
method of metric MIoUMetrics was called before the update
method which may lead to errors, as metric states have not yet been updated.
warnings.warn(*args, **kwargs)
val/mIoU_small: 0.7310887575149536
val/mIoU_medium: 0.7878617644309998
val/mIoU_large: 0.7925001382827759
Validation DataLoader 0: 100%|███████████████████████████████████████████████████████████████| 1313/1313 [03:19<00:00, 6.59it/s]
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Validate metric DataLoader 0
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
val/mIoU 0.7872997522354126
val/mIoU_large 0.7925001382827759
val/mIoU_medium 0.7878617644309998
val/mIoU_small 0.7310887575149536
val/mIoU_stuff 0.8053987622261047
val/mIoU_things 0.7857838273048401
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@cy810557 Thanks for the updates!
Not sure what happens here....
Could you share your weights? I would like to replace mine with the one you share here, if you don't mind.
I'm thinking of putting MAL on huggingface. Will that be helpful for you guys? @ameyparanjape @Monalsingh
@cy810557 Thanks for the updates!
Not sure what happens here....
Could you share your weights? I would like to replace mine with the one you share here, if you don't mind.
Here is my ckpt, hope it helps. https://drive.google.com/file/d/1VEhlZV-McaizuPBQxNj6x-Ip0xemeGdB/view?usp=sharing
Updated the weights in README. Thanks @cy810557 !
I have annotated few samples and trying to generate coco mask for the same.
I have changed values in pl_data_module.py to point the custom annotation.json and images path.
I am using this command to run the inference [Phase 1 only]
python main.py --resume /home/vit-mae-base_coco-final.ckpt --label_dump_path /home --not_eval_mask --box_inputs /home/train/_annotations.coco.json --val_only
I am getting this error:
Thanks in advance.