We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm new to writing code, so I'll have to scrutinize the code, but it seems to work.
#scripts_sam_model_dir = os.path.join(scripts.basedir(), "models/sam") try: sam_models_dir = shared.opts.sam_models_dir except AttributeError: sam_models_dir = "" if len(sam_models_dir) == 0 or sam_models_dir.isspace(): scripts_sam_model_dir = os.path.join(scripts.basedir(), "models/sam") else: scripts_sam_model_dir = os.path.expanduser(sam_models_dir) def on_ui_settings(): section = ('segment_anything', "Segment Anything") shared.opts.add_option("sam_use_local_groundingdino", shared.OptionInfo(False, "Use local groundingdino to bypass C++ problem", section=section)) shared.opts.add_option("sam_models_dir", shared.OptionInfo( default="", label="Segment Anything Models Directory", component=gr.Textbox, component_args={"interactive": True}, section=section))
The text was updated successfully, but these errors were encountered:
if worked can u make a pull request for everyone can update
Sorry, something went wrong.
No branches or pull requests
Expected behavior
I'm new to writing code, so I'll have to scrutinize the code, but it seems to work.
The text was updated successfully, but these errors were encountered: