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

UI CRASH #22

Open
phil661 opened this issue Jan 30, 2024 · 0 comments
Open

UI CRASH #22

phil661 opened this issue Jan 30, 2024 · 0 comments

Comments

@phil661
Copy link

phil661 commented Jan 30, 2024

Traceback (most recent call last):
File "C:\Users\phili\Documents\XMem2-main\XMem2-main\inference\interact\gui.py", line 1055, in on_mouse_release
self.vis_map, self.vis_alpha = interaction.push_point(ex, ey,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\Documents\XMem2-main\XMem2-main\inference\interact\interaction.py", line 225, in push_point
self.obj_mask = self.controller.interact(self.image.unsqueeze(0), x, y, not neg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\Documents\XMem2-main\XMem2-main\inference\interact\fbrs_controller.py", line 43, in interact
self.controller.add_click(x, y, is_positive)
File "C:\Users\phili\Documents\XMem2-main\XMem2-main\inference\interact\fbrs\controller.py", line 37, in add_click
pred = self.predictor.get_prediction(self.clicker)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\Documents\XMem2-main\XMem2-main\inference\interact\fbrs\inference\predictors\base.py", line 42, in get_prediction
pred_logits = self._get_prediction(image_nd, clicks_lists, is_image_changed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\Documents\XMem2-main\XMem2-main\inference\interact\fbrs\inference\predictors\brs.py", line 107, in _get_prediction
opt_result = fmin_l_bfgs_b(func=self.opt_functor, x0=self.opt_data,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_lbfgsb_py.py", line 199, in fmin_l_bfgs_b
res = _minimize_lbfgsb(fun, x0, args=args, jac=jac, bounds=bounds,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_lbfgsb_py.py", line 309, in _minimize_lbfgsb
sf = _prepare_scalar_function(fun, x0, jac=jac, args=args, epsilon=eps,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_optimize.py", line 402, in _prepare_scalar_function
sf = ScalarFunction(fun, x0, args, grad, hess,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_differentiable_functions.py", line 166, in init
self._update_fun()
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_differentiable_functions.py", line 262, in _update_fun
self._update_fun_impl()
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_differentiable_functions.py", line 163, in update_fun
self.f = fun_wrapped(self.x)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_differentiable_functions.py", line 145, in fun_wrapped
fx = fun(np.copy(x), *args)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_optimize.py", line 78, in call
self._compute_if_needed(x, *args)
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\optimize_optimize.py", line 72, in compute_if_needed
fg = self.fun(x, *args)
^^^^^^^^^^^^^^^^^^
File "C:\Users\phili\Documents\XMem2-main\XMem2-main\inference\interact\fbrs\inference\predictors\brs_functors.py", line 75, in call
f_grad = opt_params.grad.cpu().numpy().ravel().astype(np.float)
^^^^^^^^
File "C:\Users\phili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\numpy_init
.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'. Did you mean: 'cfloat'?
PS C:\Users\phili\Documents\XMem2-main\XMem2-main>

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