mirror of https://github.com/YifanXu74/MQ-Det.git
Update trainer.py
parent
1e629704c3
commit
ad57a7086c
|
@ -106,6 +106,7 @@ def do_train(
|
|||
try:
|
||||
targets = [target.to(device) for target in targets]
|
||||
captions = [t.get_field("caption") for t in targets if "caption" in t.fields()]
|
||||
positive_map = positive_map.to(device)
|
||||
except:
|
||||
pass
|
||||
# Freeze language backbone
|
||||
|
|
Loading…
Reference in New Issue