GithubHelp home page GithubHelp logo

martin-marek / parking-space-occupancy Goto Github PK

View Code? Open in Web Editor NEW
30.0 3.0 12.0 3.59 MB

📄Image-Based Parking Space Occupancy Classification: Dataset and Baseline

License: MIT License

Python 100.00%

parking-space-occupancy's Introduction

Image-Based Parking Space Occupancy Classification

Official repository for the Image-Based Parking Space Occupancy Classification: Dataset and Baseline paper.

We introduce a new dataset for image-based parking space occupancy classification and propose a simple baseline model which achieves 98% accuracy on unseen parking lots.

In this repository, we provide:

Dataset

The dataset (called Action-Camera Parking Dataset) contains 293 images captured at a roughly 10-meter height using a GoPro Hero 6 camera. Here is a sample from the dataset:

alt text

Inference

Here's a minimal example to run inference on a trained model. For more, please see the demo notebook.

import torch, os, requests
from models.rcnn import RCNN
from utils import transforms

# create model
model = RCNN()

# load model weights
weights_path = 'weights.pt'
if not os.path.exists(weights_path):
    r = requests.get('https://storage.googleapis.com/pd-models/RCNN_128_square_gopro.pt')  
    with open(weights_path, 'wb') as f:
        f.write(r.content)
model.load_state_dict(torch.load(weights_path, map_location='cpu'))

# inference
image = torch.zeros([3, 1000, 1000])
parking_space_coordinates = torch.zeros([10, 4, 2])
image = transforms.preprocess(image)
class_logits = model(image, parking_space_coordinates)
class_scores = class_logits.softmax(1)[:, 1]

Training

To reproduce our full results from the paper, please run the train_all_models script locally. To train just a single model, please use the provided Colab notebook – Google Colab is sufficient for this.

Citation

@misc{marek2021imagebased,
      title={Image-Based Parking Space Occupancy Classification: Dataset and Baseline}, 
      author={Martin Marek},
      year={2021},
      eprint={2107.12207},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

parking-space-occupancy's People

Contributors

martin-marek avatar

Stargazers

 avatar Ziad Tamim avatar 帅扎天 avatar  avatar Leon avatar shan avatar Alexander Nevarko avatar  avatar TREE avatar Bilgee Bayaraa avatar Estebanh avatar  avatar David Ibáñez avatar Walid Brini avatar Ibrahim A. Shukoor avatar Dawid Sygocki avatar  avatar Jiwon Lee avatar  avatar Andrés Gutierrez avatar Gaurav avatar  avatar  avatar Porvatov Vadim avatar Sasikanth Kotti avatar Arda Düzceker avatar Mykhailo Nedodai avatar Justin Bousquin avatar Jeovane H. Alves avatar Dickachu Yang avatar

Watchers

Yu Zhang avatar  avatar Miloslav Kužela avatar

parking-space-occupancy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.