Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version boosted to 0.0.14 #27

Merged
merged 4 commits into from
Aug 29, 2024
Merged
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
1 change: 1 addition & 0 deletions .github/workflows/upload_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
rm -rf tests benchmark
python -m build
twine upload dist/*
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ repos:
# hooks:
# - id: markdownlint
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.2.0"
rev: "2.2.1"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tomli"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.5
rev: v0.6.2
hooks:
# Run the linter.
- id: ruff
Expand All @@ -68,7 +68,7 @@ repos:
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0
rev: v1.11.2
hooks:
- id: mypy
files: ^albucore/
Expand Down
43 changes: 0 additions & 43 deletions Benchmark.md

This file was deleted.

2 changes: 1 addition & 1 deletion albucore/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.0.13"
__version__ = "0.0.14"

from .functions import *
13 changes: 11 additions & 2 deletions benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash

# Check if the data directory is provided as an argument
if [ $# -eq 0 ]; then
echo "Usage: $0 <data_directory>"
exit 1
fi

# Store the data directory path from the command-line argument
data_dir="$1"

# Define the array of channel values
channels=(1 3 5)

Expand All @@ -10,7 +19,7 @@ types=("uint8" "float32")
for ch in "${channels[@]}"; do
# Nested loop over each image type
for type in "${types[@]}"; do
# Command to run your program, e.g., a Python script
python -m benchmark.benchmark --num_channels $ch --img_type $type --markdown -n 2000 --show-std -r 5 -d /home/vladimir/workspace/evo970/data/Imagenet1k/ILSVRC2015/Data/CLS-LOC/val
# Command to run your program, using the provided data directory
python -m benchmark.benchmark --num_channels $ch --img_type $type --markdown -n 2000 --show-std -r 5 -d "$data_dir"
done
done
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mypy>=1.11.0
mypy>=1.11.2
pre_commit>=3.5.0
pytest>=8.2.0
pytest_cov>=4.1.0
pytest_mock>=3.14.0
ruff>=0.5.5
ruff>=0.6.2
types-setuptools
ternaus marked this conversation as resolved.
Show resolved Hide resolved
Loading