Dear sir, I want to run the program directly locally, that is, input the image and output the segmented and marked image without using Gradio to generate the website. Is there any corresponding file? I try to modify the demo_som.py file, but I always get an error because of these two lines.
_image = image['background'].convert('RGB') _mask = image['layers'][0].convert('L') if image['layers'] else None
Can you give me some tips please?Thank you.
Dear sir, I want to run the program directly locally, that is, input the image and output the segmented and marked image without using Gradio to generate the website. Is there any corresponding file? I try to modify the demo_som.py file, but I always get an error because of these two lines.
_image = image['background'].convert('RGB') _mask = image['layers'][0].convert('L') if image['layers'] else NoneCan you give me some tips please?Thank you.