yeungchenwa/OCR-SAM

when using Inpainting demo there is an error

Sleepybear66 opened this issue · 1 comments

1759a3ae3d494825b6801711e1c69cd
2925c3878e0c55d0b0849bbd3f2e7de
939360a417a0a62a095f4d94fe3073a

when following the operations:
(ocr-sam) PS D:\Python\text_removal\OCR-SAM> python mmocr_sam_inpainting.py `

--img_path "D:\Python\text_removal\OCR-SAM\image_test\images_in\13196_4.jpg" `
--outdir "D:\Python\text_removal\OCR-SAM\image_test\images_out" `
--device cuda `
--sam_checkpoint "D:\Python\text_removal\OCR-SAM\checkpoints\sam\sam_vit_h_4b8939.pth" `
--prompt "None" `
--select_index 0

there is an error occuring!
Traceback (most recent call last):
File "mmocr_sam_inpainting.py", line 87, in
args.det_config,
AttributeError: 'Namespace' object has no attribute 'det_config'

image
Hello, I solved the problem by change the code like this.