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

Error when loading a pretrained model #165

Open
bekhzod-olimov opened this issue Jan 26, 2023 · 0 comments
Open

Error when loading a pretrained model #165

bekhzod-olimov opened this issue Jan 26, 2023 · 0 comments

Comments

@bekhzod-olimov
Copy link

I have downloaded a pretrained "xception_pascalvoc.pb" model and put it to my directory with the python code. But when I run the script it results in OSEerror:

OSError: Unable to open file (file signature not found)

Here is my code:

import pixellib
from pixellib.tune_bg import alter_bg

change_bg = alter_bg()
# change_bg.load_pascalvoc_model("deeplabv3_xception_tf_dim_ordering_tf_kernels.h5")
change_bg.load_pascalvoc_model("./xception_pascalvoc.pb")
change_bg.color_bg("test.jpg", colors = (0,128,0), output_image_name="colored_bg.jpg")

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

1 participant