XMem2 icon indicating copy to clipboard operation
XMem2 copied to clipboard

UI CRASH

Open phil661 opened this issue 1 year ago • 0 comments

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>

phil661 avatar Jan 30 '24 20:01 phil661