huggingface / huggingface/candle
load_image and load_image_and_resize return different permutations
Open
- Dominant language
- Rust
- Stars
- 21k
- Forks
- 1.8k
- Avg merge
- 16h 42m
- Merged PRs (30d)
- 25
Description
In _candle-examples/src/lib.rs_ the function _load_image_ returns (channels, height, width), but the function _load_image_and_resize_ returns (channels, width, height):
```rust
let data = Tensor::from_vec(data, (height, width, 3), &Device::Cpu)?.permute((2, 0, 1))?;
```
and
```rust
Tensor::from_vec(data, (width, height, 3), &Device::Cpu)?.permute((2, 0, 1))
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.