You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors. This means writing to this ten
sor will result in undefined behavior. You may want to copy the array to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of thi
s program. (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:199.)
torch.as_tensor(image).permute(2, 0, 1),
```The solution is:```python
output = to_pil_image(
draw_bounding_boxes(
torch.as_tensor(image.copy()).permute(2, 0, 1),
boxes,
labels=[label_names[cid] forcidinpred_classes.tolist()],
colors=colors,
)
)
```
The text was updated successfully, but these errors were encountered:
devit/demo/demo.py
Line 257 in cfd0e0e
The text was updated successfully, but these errors were encountered: