vidit09 / domaingen

CLIP the Gap CVPR 2023
73 stars 7 forks source link

how to run a demo #30

Open HuaYuexia opened 1 week ago

HuaYuexia commented 1 week ago

Excuse me, can you tell me how to run a demo to test a picture?

vidit09 commented 1 week ago

Hello you can run the following cmd python train.py --eval-only --config-file configs/diverse_weather.yaml

HuaYuexia commented 1 week ago

Thanks for your reply! The script above seems to be for testing. But I am still confused about how to test one or some pictures and get their visualized results as shown in the paper. I am very much looking forward to your detailed response!

vidit09 commented 1 week ago

You pull out the model from this line
https://github.com/vidit09/domaingen/blob/9c03d07a6f8c12b6a7a5e02bd9346d7bb5a3b9ff/train.py#L579-L582

and pass the image with the required preprocessing

HuaYuexia commented 1 week ago

Thank you very much for your patience! I'm a beginner so I'll be a bit confused, can I refer to detectron2's demo.py for the rest of the processing steps? Sorry for wasting your time, thanks again!

vidit09 commented 1 week ago

Yes, you can try that. I'm not sure how compatible the versions are but if underlying base classes are the same, it can work.

Git9853 commented 1 week ago

Hello, I have the same questions. Could you please share your demo script? Looking forward to your reply.

Yes, you can try that. I'm not sure how compatible the versions are but if underlying base classes are the same, it can work.