diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89e96f3..114358f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ name: build on: # Triggers the workflow on push or pull request events but only for the "main" branch push: - branches: [ "main" ] + branches: [ "**" ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -161,6 +161,8 @@ jobs: uses: actions/upload-artifact@v4 with: name: imagetools.exe - path: target/release/imagetools.exe + path: | + target/release/imagetools.exe + target/release/imagetools.pdb retention-days: 14 \ No newline at end of file diff --git a/src/common/augment.rs b/src/common/augment.rs index d81a149..6b6b886 100644 --- a/src/common/augment.rs +++ b/src/common/augment.rs @@ -57,9 +57,19 @@ pub async fn split_images(dataset_path: &String, target_height: &u32, target_wid let size = img.size().expect_or_log("Failed to get image 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; + tracing::trace!( + "Image {} vertical_count {} horizontal_count {}", + file_name, + vertical_count, + horizontal_count + ); + // LTR 'outer: for horizontal_index in 0..horizontal_count { 'inner: for vertical_index in 0..vertical_count {