Skip to main content

Check if image was rotated by 90, 180, 270 degrees.

Project description

check_orientation

Model to check if image was rotated by 90, 180, 270 degrees.

Training

Define the config.

Example at check_orientation/configs

Define the environmental variable TRAIN_IMAGE_PATH that points to the folder with train dataset.

Example:

export TRAIN_IMAGE_PATH=<path to the tranining folder>

Define the environmental variable VAL_IMAGE_PATH that points to the folder with validation dataset.

Example:

export VAL_IMAGE_PATH=<path to the validation folder>

Training

python -m check_orientation.train -c <path to config>

Inference

python -m torch.distributed.launch --nproc_per_node=<num_gpu> check_orientation/inference.py \
                                   -i <path to images> \
                                   -c <path to config> \
                                   -w <path to weights> \
                                   -o <output-path> \
                                   --fp16

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

check_orientation-0.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

check_orientation-0.0.3-py2.py3-none-any.whl (11.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file check_orientation-0.0.3.tar.gz.

File metadata

  • Download URL: check_orientation-0.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for check_orientation-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f52784c432ed4bef0e0576d932c4c02b84b9c9390f34b3e125828ae19e30d23c
MD5 d8695bf79c979eb86ef5408f9e0aaa2b
BLAKE2b-256 9c61cba9eb85f8ee2fb1081f0f12b4b1370fd0eaf0e054fc99c90c0a0f266161

See more details on using hashes here.

File details

Details for the file check_orientation-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: check_orientation-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for check_orientation-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 19aaba784aef71a824de2c18a8177b1a26f1cdfb0c29c17a00eca8bd2dfeb223
MD5 36ceee0bea340c480aef4634edf0b59f
BLAKE2b-256 09b43dda432be5721a1418e74cdeb5085b762dcc649fd5f21931921fe0cef6a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page