British Machine Vision Conference (BMVC)

Overview

Introduction

This repository contains the model files, solver definitions, and learned weights for the networks described in the following publication:

Horizon Lines in the Wild (Scott Workman, Menghua Zhai, Nathan Jacobs), In British Machine Vision Conference (BMVC), 2016. pdf

@inproceedings{workman2016horizon,
    author={Workman, Scott and Zhai, Menghua and Jacobs, Nathan},
    title={Horizon Lines in the Wild},
    booktitle={{British Machine Vision Conference (BMVC)}},
    year={2016}
}

Getting Started

Download the model required for the demo:

cd models; ./download_models.sh --demo

Run the demo:

cd example; python example.py

To download all models:

cd models; ./download_models.sh

License

This software is released under a creative commons license which allows for personal and research use only. For a commercial license please contact the authors. You can view a license summary here: http://creativecommons.org/licenses/by-nc/4.0/

Contact

Scott Workman
University of Kentucky
http://cs.uky.edu/~scott/

Comments
  • Example code doesn't run on Windows?

    Example code doesn't run on Windows?

    When I run python example.py on Windows 10 with Python 2.7 I hit this. Any ideas? Thanks.

    Traceback (most recent call last):
      File "example.py", line 122, in <module>
        center_im, crop_info = center_crop(im)
      File "example.py", line 22, in center_crop
        c_im = im[y_inds[0]:y_inds[1]+1, x_inds[0]:x_inds[1]+1, :]
    TypeError: slice indices must be integers or None or have an __index__ method
    
    opened by joshpeng 4
  • How to train model from scratch

    How to train model from scratch

    Hi!

    The demo is charming! Do you have any plan to open-source the training code. There seems to be one solver.proto and deploy.net in the shared files, but the trained model is "train.net", is there any difference between deploy and train, and in my short experience of caffe usage, there should be some difference like the data and loss layer, as shown in https://github.com/BVLC/caffe/wiki/Using-a-Trained-Network:-Deploy.

    Could you provide the train.net or give some hints?

    opened by MiaoDX 2
  • download_models.sh: Error 403

    download_models.sh: Error 403

    Hello, I tried downloading the model files using the download_models.sh script, but I get a 403 Forbidden error:

    /path/to/deephorizon/models $ ./download_models.sh
    ./download_models.sh: line 6: [: ==: unary operator expected
    Downloading...
    converted 'https://doc-10-5g-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/2m02fctjabc3jmo3mo1fqta8hr5nbj3l/1472248800000/05018003348500916163/*/0BzEcTtT1A2ILb2QzTkVHLXBiREE?e=download' (ANSI_X3.4-1968) -> 'https://doc-10-5g-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/2m02fctjabc3jmo3mo1fqta8hr5nbj3l/1472248800000/05018003348500916163/*/0BzEcTtT1A2ILb2QzTkVHLXBiREE?e=download' (UTF-8)
    Warning: wildcards not supported in HTTP.
    --2016-10-10 19:09:09--  https://doc-10-5g-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/2m02fctjabc3jmo3mo1fqta8hr5nbj3l/1472248800000/05018003348500916163/*/0BzEcTtT1A2ILb2QzTkVHLXBiREE?e=download
    Resolving doc-10-5g-docs.googleusercontent.com (doc-10-5g-docs.googleusercontent.com)... 216.58.213.225, 2a00:1450:4005:80a::2001
    Connecting to doc-10-5g-docs.googleusercontent.com (doc-10-5g-docs.googleusercontent.com)|216.58.213.225|:443... connected.
    HTTP request sent, awaiting response... 403 Forbidden
    2016-10-10 19:09:09 ERROR 403: Forbidden.
    
    Unzipping...
    Archive:  deephorizon.zip
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of deephorizon.zip or
            deephorizon.zip.zip, and cannot find deephorizon.zip.ZIP, period.
    Done.
    

    It would be very kind of you to look into this issue. Thank you!

    opened by fkluger 2
  • model downloads not working

    model downloads not working

    The model downloading scripts are not working because amos.csr.uky.edu is no longer publicly accessible. This is due to a security policy change at the University of Kentucky. We are working to rectify the situation.

    opened by jacobsn 1
  • inconsistency of parameterization in the paper and code

    inconsistency of parameterization in the paper and code

    Hi, Scott. Thank you for publishing the exciting work. I'm trying to reproduce the result with PyTorch.

    However, I notice that in the paper you used the straight line's normal definition, ρ = x cos θ + y sin θ, where ρ should be a distance (ρ>0) and theta should be the angle between the normal and the horizontal axis. However, in bins.mat, the bins of offset can be negative. Besides, this part of the example code also indicates that ρ is signed (negative if the intercept on the vertical axis < 0) and θ is the angle the horizon line makes with the horizontal axis.

    Which parameterization should I follow? Thank you!

    opened by XZLeo 2
Owner
Scott Workman
Scott Workman
Text-cli - Command line tool for extracting text from images using Apple's Vision framework

text-cli Command line tool for extracting text from images using Apple's Vision

San Francisco International Airport Museum 9 Aug 29, 2022
The Swift machine learning library.

Swift AI is a high-performance deep learning library written entirely in Swift. We currently offer support for all Apple platforms, with Linux support

Swift AI 5.9k Jan 2, 2023
MLKit is a simple machine learning framework written in Swift.

MLKit (a.k.a Machine Learning Kit) ?? MLKit is a simple machine learning framework written in Swift. Currently MLKit features machine learning algorit

Guled 152 Nov 17, 2022
Artificial intelligence/machine learning data structures and Swift algorithms for future iOS development. bayes theorem, neural networks, and more AI.

Swift Brain The first neural network / machine learning library written in Swift. This is a project for AI algorithms in Swift for iOS and OS X develo

Vishal 331 Oct 14, 2022
Generate sniglets with machine learning

Give Me A Sniglet! Give Me a Sniglet is a random word-like generator with an on-device machine learning model that validates whether the word is likel

Marquis Kurt 4 Mar 3, 2022
🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.

English | 简体中文 | 繁體中文 | 한국어 State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow ?? Transformers provides thousands of pretrained models

Hugging Face 77.1k Dec 31, 2022
Mobile-ios-ml - SBB Mobile Machine Learning for iOS devices

ESTA library: Machine Learning for iOS This framework simplifies the integration

Swiss Federal Railways (SBB) 9 Jul 16, 2022
iOS application to tell the time in the British way 🇬🇧⏰

Tell Time ???? ⏰ As a French guy in London, when people told me the time, I was always lost. Now thanks to this app, I can confirm what I hear and wha

Renaud Jenny 50 Dec 18, 2022
Vision Camera 📸 The Camera library that sees the vision.

Vision Camera ?? The Camera library that sees the vision. npm i react-native-vision-camera npx pod-install Documentation Guides API Ex

Marc Rousavy 3.5k Jan 5, 2023
👨‍💻Watch the latest and greatest conference videos on your Mac

Conferences.digital is the best way to watch the latest and greatest videos from your favourite developer conferences for free on your Mac. Either sea

Timon Blask 768 Jan 4, 2023
Collection of Swift/iOS-related conference videos. A demo project for SuperArc framework - building modular iOS apps with a µComponent architecture.

SwiftCommunity Beta version is available at TestFlight Collection of Swift/iOS-related conference videos. This project serves as a showcase for the Su

SuperArcSwift 52 Dec 2, 2022
Library for scanning documents via MRZ (Machine Readable Zones) using  Vision API

MRZScanner Library for scanning documents via MRZ using  Vision API. Example The example project is located inside the Example folder. To run it, you

App in the Air 48 Nov 22, 2022
Slot-machine - SwiftUI - iOS App Slot Machine game

Slot Machine SwiftUI Masterclass project iPhone, iPad and Mac (with Catalyst framework) Complex interface Extensions and custom View Modifiers Input t

Arthur Neves 1 Sep 12, 2022
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.

ImageDetect ImageDetect is a library developed on Swift. With ImageDetect you can easily detect and crop faces, texts or barcodes in your image with i

Arthur Sahakyan 299 Dec 17, 2022
SharkCardScan is a Credit/Debit Card scanner built using Apple's Vision Framework.

iOS Credit/Debit card scanner, built using Apple's Vision Framework.

Gymshark 23 Nov 16, 2022
A credit card reader and parser for iOS Using Native Vision/VisionKit

card-reader-ios A credit card reader and parser for iOS Using Native Vision/VisionKit May-14-2021.00-43-17.mp4 Instructions Hold camera up to a card a

Khalid Asad 104 Dec 15, 2022
A simple macOS app to read code from images, written purely in Swift using Vision Framework.

CodeReader A simple macOS app to read code from images, written purely in Swift using Vision Framework. Usage Drag an image Click the convert button R

Md Ibrahim Hassan 44 Nov 20, 2022
Screen translator for macOS with Apple Vision API and IBM Watson, Google Cloud Translator

Swifty-OCR-Translator Screen translator for macOS with Apple Vision API and IBM Watson, Google Cloud Translator Usage Select Translator Fill in the AP

Kwangmin Bae 21 Sep 13, 2022
Real-Time image recognition for iOS with Vision(CoreML) and InceptionV3

Kesan-ML-iOS Real-Time image recognition for iOS with CoreML and InceptionV3  Test Flight Description Real-Time image recognition Integrating app wit

Ikmal Azman 3 Jun 26, 2022
Classifying Images With Vision And Core ML

Classifying Images with Vision and Core ML Preprocess photos using the Vision framework and classify them with a Core ML model. Overview With the Core

Ivan Kolesov 2 Nov 15, 2022