Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/generate_changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate Changelog

on:
push:
branches: [main]

jobs:
changelog:
runs-on: ubuntu-latest
name: Generate and Commit Changelog

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Generate Changelog
uses: smichard/conventional_changelog@2.0.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set Git User Info
run: |
git config user.name 'GitHub Actions Bot'
git config user.email 'actions@github.com'

- name: Commit Changelog
run: |
git add CHANGELOG.md
git commit -m "docs: :robot: changelog file generated" || echo "No changes to commit"
git push
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and to [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).

## Unreleased changes

### Continuous Integration
- add changelog generation [`6ea7e4f`](https://github.com/HarlanHeilman/torch-image-binarization/commit/6ea7e4f)

## v0.0.2 (2025-06-18)

### Build
- added dev dependencies [`eb25a66`](https://github.com/HarlanHeilman/torch-image-binarization/commit/eb25a66)
- remove setup.py [`31b92d1`](https://github.com/HarlanHeilman/torch-image-binarization/commit/31b92d1)
- generate data directory [`1d02f04`](https://github.com/HarlanHeilman/torch-image-binarization/commit/1d02f04)
- build dists [`59ed764`](https://github.com/HarlanHeilman/torch-image-binarization/commit/59ed764)
- move requirements and setup to pyproject.py [`35c95dd`](https://github.com/HarlanHeilman/torch-image-binarization/commit/35c95dd)

### Other
- improve histogram implementation, benchmark and readme [`5a9d65c`](https://github.com/HarlanHeilman/torch-image-binarization/commit/5a9d65c)
- properly optimize code for torch.compile refactor into package improve benchmarking [`5896253`](https://github.com/HarlanHeilman/torch-image-binarization/commit/5896253)
- add torch optimizations [`1d331f1`](https://github.com/HarlanHeilman/torch-image-binarization/commit/1d331f1)
- add torch implementation [`f71d599`](https://github.com/HarlanHeilman/torch-image-binarization/commit/f71d599)
- Initial commit [`3cd8e3b`](https://github.com/HarlanHeilman/torch-image-binarization/commit/3cd8e3b)

File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[project]
name = "torch-image-binarization"
version = "0.0.2"
description = "`torch.compile`-compatible image binarization algorithm implemented in PyTorch."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"pillow>=11.2.1",
"torch>=2.7.1",
"torchvision>=0.22.1",
]

[project.scripts]
binarize = "torch_image_binarization:main"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "pep621"
update_changelog_on_bump = true
major_version_zero = true

[dependency-groups]
dev = [
"commitizen>=4.8.3",
"pyrefly>=0.20.2",
"ruff>=0.12.0",
]
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

17 changes: 0 additions & 17 deletions setup.py

This file was deleted.

677 changes: 677 additions & 0 deletions uv.lock

Large diffs are not rendered by default.