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

Uploaded Source

Built Distribution

check_orientation-0.0.2-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: check_orientation-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 84f04c704b7a08bb76ca7811ac00c57142e367b88a3b5e40d388db4efa208464
MD5 5040904e070ba24077410020b7851874
BLAKE2b-256 a9d7f50d5c098fee247cec53933071d6afdccfc9e546d94f17460dbfbfe34621

See more details on using hashes here.

File details

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

File metadata

  • Download URL: check_orientation-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c4aae4d59135c8e0a1721bd72b79f1973e8da4b4fdf5baf6c238d86ffa9c31fb
MD5 2b5f33baedc2c53fdf2beb56f128aaea
BLAKE2b-256 8c3aedfe8e92ec0ffa9616661109c858312ab9b767121931293d0db6c1ac5118

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