huggingface / huggingface/candle

load_image and load_image_and_resize return different permutations

Open
#2,291 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.