Skip to content

Commit

Permalink
fix: add trace to check the original image size
Browse files Browse the repository at this point in the history
  • Loading branch information
4o3F committed Sep 11, 2024
1 parent 5d69277 commit b8de068
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: imagetools.exe
name: imagetools
path: |
target/release/imagetools.exe
target/release/imagetools.pdb
Expand Down
4 changes: 2 additions & 2 deletions src/common/augment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ pub async fn split_images(dataset_path: &String, target_height: &u32, target_wid
.expect_or_log(format!("Failed to read image: {}", entry_path).as_str());

let size = img.size().expect_or_log("Failed to get image size");
tracing::trace!("Image {} size {:?}", file_name, size);

let (width, height) = (size.width as u32, size.height as u32);

tracing::trace!("Image {} size {}x{}", file_name, width, height);

let vertical_count = height / target_height;
let horizontal_count = width / target_width;
Expand Down

0 comments on commit b8de068

Please sign in to comment.