chenjoya commited on
Commit
3b29809
·
verified ·
1 Parent(s): 209ed5f

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -0
inference.py CHANGED
@@ -12,6 +12,7 @@ logger = transformers.logging.get_logger('liveinfer')
12
  class LiveInfer:
13
  def __init__(self, ) -> None:
14
  args = parse_args()
 
15
  self.model, self.tokenizer = build_model_and_tokenizer(is_training=False, set_vision_inside=True, **asdict(args))
16
  self.model.to('cuda')
17
 
 
12
  class LiveInfer:
13
  def __init__(self, ) -> None:
14
  args = parse_args()
15
+ args.resume_from_checkpoint = 'checkpoints/live1+_aug_2e'
16
  self.model, self.tokenizer = build_model_and_tokenizer(is_training=False, set_vision_inside=True, **asdict(args))
17
  self.model.to('cuda')
18