vidar icon indicating copy to clipboard operation
vidar copied to clipboard

How to do inference on single image or folder using checkpoints of the model?

Open akashchavan15 opened this issue 2 years ago • 5 comments

This is great work. I trained the model using this repo for my use case. Is there a way to do inference on a single image or folder using the checkpoints of the model?

Thank you

akashchavan15 avatar Oct 06 '22 17:10 akashchavan15

This is great work. I trained the model using this repo for my use case. Is there a way to do inference on a single image or folder using the checkpoints of the model?

Thank you

can someone please reply to my query?

akashchavan15 avatar Oct 16 '22 06:10 akashchavan15

Hello, @akashchavan15 I've recently found this repo and desided to check some pretrained models. As far as I know there is no inference script, except demo script.

I wrote an inference script based on demo, but it seems to be a little inappropriate in "vidar-like paradygm", because all provided snapshots (for some models) are not adapted to use outside "Wrapper", their names does not match at the first place, like some snapshots had been created in another pipeline version. Had to fix it.

It seems Wrapper modification or wrapper's analog to infer the model at any data are required

Northengard avatar Oct 17 '22 14:10 Northengard

Hi @Northengard Thanks for the reply. I am also trying to create one but facing some issues. I was hoping someone from the contributors would give some inside.

akashchavan15 avatar Oct 17 '22 16:10 akashchavan15

hello,can I have a look at your code? @Northengard

1005452649 avatar Apr 15 '23 09:04 1005452649

Hello, @1005452649, sorry for delay, shure. https://pastebin.com/bwzNdTNm It contains 2 types of model initialization that I've tested:

  1. setup_arch
  2. via gettatr + load checkpoint.

Methods works different. For the second one "load_checkpoint" method modification could be required. (like that https://pastebin.com/n6kWfgBp)

Northengard avatar Apr 19 '23 06:04 Northengard