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.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

check_orientation-0.0.1-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.1.tar.gz.

File metadata

  • Download URL: check_orientation-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 649ba13e8be9044abae471163276e9f927d71b0593e9bd31468a48135cce900f
MD5 6bca214b2bf11289a6e638ee349fcac8
BLAKE2b-256 40f3d053b1e43467ebf69326edc2c71e7ce887842ae8bd801ec8052d2ea7c557

See more details on using hashes here.

File details

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

File metadata

  • Download URL: check_orientation-0.0.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8128dc94d64c6a417304bcbe3f65406d1d552dc318698d62edebeb1adef63402
MD5 56a4c9408d184551cf3f3e17e1dcb01c
BLAKE2b-256 6d0f67806022f6901f107f08df5ef9a17e40fb499f993a80657223fd88d5def8

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