(image,text,text_part,text_thresh,*args, **kwargs)
| 54 | |
| 55 | @torch.no_grad() |
| 56 | def inference(image,text,text_part,text_thresh,*args, **kwargs): |
| 57 | text_size, hole_scale, island_scale=640,100,100 |
| 58 | with torch.autocast(device_type='cuda', dtype=torch.float16): |
| 59 | semantic=False |
| 60 | model=model_sam |
| 61 | a,b= interactive_infer_image_idino_m2m(model, image,text,text_part,text_thresh,text_size,hole_scale,island_scale,semantic, *args, **kwargs) |
| 62 | return a,b |
| 63 | |
| 64 | |
| 65 |
nothing calls this directly
no outgoing calls
no test coverage detected