ksaito-ut / openworld_ldet

MIT License
54 stars 2 forks source link

Visualization demo? #2

Closed wjn922 closed 2 years ago

wjn922 commented 2 years ago

Hi,

Would you plz give some instructions on how to visualize the LDET results?

ksaito-ut commented 2 years ago

Hi, we are using demo code provided by detectron2. https://github.com/facebookresearch/detectron2/blob/main/demo/demo.py

EladDan commented 2 years ago

@wjn922, you will also have to add the following lines into setup_cfg() in demo.py:

cfg = get_cfg()
from ldet.engine import add_copypaste_config  # addition
add_copypaste_config(cfg)  # addition
cfg.merge_from_file(args.config_file)
wjn922 commented 2 years ago

Thanks.