Devin
Devin
@albertvillanova
@lhoestq Can you provide me with some ideas?
@lhoestq ``` Traceback (most recent call last): File "/home/dongzf/miniconda3/envs/dataset_ai/lib/python3.11/runpy.py", line 198, in _run_module_as_main return _run_code(code, main_globals, None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dongzf/miniconda3/envs/dataset_ai/lib/python3.11/runpy.py", line 88, in _run_code exec(code, run_globals) File "/home/dongzf/.vscode/extensions/ms-python.python-2023.22.1/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39,...
not add read() the error is return np.fromfile(xopen(filepath_or_buffer, "rb", download_config=download_config), *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ io.UnsupportedOperation: fileno
xopen return obj do not have fileno function I don't know why?
I used this method to read point cloud data in the script ```python with open(velodyne_filepath,"rb") as obj: velodyne_data = numpy.frombuffer(obj.read(), dtype=numpy.float32).reshape([-1, 4]) ```
if only use box prompt,how to do it?
boxes[:, 0] = torch.where(boxes[:, 0] < threshold, torch.tensor(0,dtype=torch.float,device=boxes.device), boxes[:, 0]) # x1 boxes[:, 1] = torch.where(boxes[:, 1] < threshold, torch.tensor(0,dtype=torch.float,device=boxes.device), boxes[:, 1]) # y1 boxes[:, 2] = torch.where(boxes[:, 2] >...
```python @FUNCTION_REWRITER.register_rewriter(func_name='copy.deepcopy') def copy__default(tensor: Tensor, *args, **kwargs) -> Tensor: """Rewrite `copy.deepcopy` for default backend. Replace it with tensor.clone(), or may raise `NYI: Named tensors are not supported with the tracer`...
> @RunningLeon Thank you, that worked. Colud you do a PR? 这个代码没有严格经过测试,网上找的 只能做为临时方案,问题的原因是当是字典时如果不处理还是会调用对象重载的深拷贝函数导致