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

TypeError: ImageSegmenterOptions.__init__() got an unexpected keyword argument 'output_category_mask' #386

Open
saboorniazi opened this issue May 9, 2024 · 0 comments

Comments

@saboorniazi
Copy link

import mediapipe as mp
from mediapipe.tasks import python
from mediapipe.tasks.python import vision
import os
model_path = 'data_gen/utils/mp_feature_extractors/selfie_multiclass_256x256.tflite'
if not os.path.exists(model_path):
os.makedirs(os.path.dirname(model_path), exist_ok=True)
print("downloading segmenter model from mediapipe...")
os.system(f"wget https://storage.googleapis.com/mediapipe-models/image_segmenter/selfie_multiclass_256x256/float32/latest/selfie_multiclass_256x256.tflite")
os.system(f"mv selfie_multiclass_256x256.tflite {model_path}")
print("download success")
base_options = python.BaseOptions(model_asset_path=model_path)

options = vision.ImageSegmenterOptions(base_options=base_options,running_mode=vision.RunningMode.IMAGE,output_category_mask=True)

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