question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: module 'rembg.bg' has no attribute 'get_model'

See original GitHub issue

Hi,

I am trying to use the automatic_masking script, however while the installation procedure went smoothly when I tried to run the script on my images I got the following error message:

Error: module 'rembg.bg' has no attribute 'get_model'

Any idea how to resolve it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PolarNick239commented, Mar 24, 2022

Nice! 😃

Call this function:

generate_automatic_background_masks_with_rembg(chunk)

Note that when you will try to import it like this:

from automatic_masking import generate_automatic_background_masks_with_rembg

it will also evaluate these lines (binding the script function to button Scripts->Automatic…), but if you don’t run under GUI - you may want to delete them.

0reactions
ttsesmcommented, Mar 24, 2022

Perfect, thanks a lot for the feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django+Haystack: Exception Value: 'module' object has no ...
I'm getting this error and I have no idea what I'm supposed to do now, I cannot find anything similar though I've scoured...
Read more >
[BUG] AttributeError: module 'collections' has no attribute ...
Describe the bug Just installed the software but I can't even start it. Can you please give some advice what to check to...
Read more >
I am not able to use RemBg Python Software. Help me-django
I was using RemBg Software provided in this Repository. Whenever I used it. It gives me the following error- Failed to import ahead-of-time-compiled...
Read more >
How to remove the background of a picture with Machine ...
Learn how to use the awesome Rembg python library to remove the background of any image with machine learning. How to remove the...
Read more >
Pyimagej : module 'scyjava' has no attribute 'jvm_started'
Hello, I tried to install latest version of pyimageJ (https://github.com/imagej/pyimagej) on Windows. conda create -n pyimagej -c ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found