yeungchenwa / OCR-SAM

Combining MMOCR with Segment Anything & Stable Diffusion. Automatically detect, recognize and segment text instances, with serval downstream tasks, e.g., Text Removal and Text Inpainting
533 stars 37 forks source link

when using Inpainting demo there is an error #40

Open Sleepybear66 opened 11 months ago

Sleepybear66 commented 11 months ago

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'

murmurelo111 commented 8 months ago

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