Graduation_Project/LHL/models/__init__.py

10 lines
325 B
Python
Raw Normal View History

2024-06-25 11:50:04 +08:00
from .bua import add_bottom_up_attention_config
def add_config(args, cfg):
if args.mode == "caffe":
add_bottom_up_attention_config(cfg, True)
elif args.mode == "detectron2":
add_bottom_up_attention_config(cfg)
else:
raise Exception("detection model not supported: {}".format(args.model))