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

关于程序的BUG #70

Open
king1111sadjfoisja opened this issue May 3, 2024 · 4 comments
Open

关于程序的BUG #70

king1111sadjfoisja opened this issue May 3, 2024 · 4 comments

Comments

@king1111sadjfoisja
Copy link

尊敬的作者您好,今天完成环境的配置后,在编译程序时遇到一个问题,就是无法识别sam_model_registry,阅读程序发现是从mobile_sam中导入的:
image
但是这段话,如果args.mobile_sam=0,那不就不导入这个类,从而引发else部分的语法错误?本人初学,真心希望能得到您的答复,感激不尽!

@Jumpat
Copy link
Owner

Jumpat commented May 5, 2024

你好,这里确实会有问题,我们暂时没有修复这一bug。可以直接注释掉这些代码。

@king1111sadjfoisja
Copy link
Author

您好,感谢您的回复,这段代码里面利用sam_model_registry定义了self.sam,这个self.sam又用来定义了self.predictor,如果单纯注释掉这些代码,后面的self.predictor也会出现错误,请问应该如何解决呢?

@jialning
Copy link

您好,我也遇到了相同的问题,请问最后怎么可以解决?

@Jumpat
Copy link
Owner

Jumpat commented May 23, 2024

@jialning @king1111sadjfoisja 这里确实需要调整代码,只保留原始sam的分割器,去掉mobile_sam的另一个分支

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

3 participants