Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when using Inpainting demo there is an error #40

Open
Sleepybear66 opened this issue Nov 23, 2023 · 1 comment
Open

when using Inpainting demo there is an error #40

Sleepybear66 opened this issue Nov 23, 2023 · 1 comment

Comments

@Sleepybear66
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants