CAR-API: Cityscapes Attributes Recognition API

Related tags

Deep LearningCAR-API
Overview

CAR-API: Cityscapes Attributes Recognition API

This is the official api to download and fetch attributes annotations for Cityscapes Dataset.

Content

Installation

You first need to download Cityscapes dataset. You can do so by checking this repo.

I'm showing here a simple working example to download the data but for further issues please refer to the source repo. Or download from the official website

  1. Install Cityscapes scripts and other required packages.
$ pip install -r requirements.txt
  1. Run the following script to download Cityscapes dataset. If you don't have an account, you will need to create an account.
$ csDownload -d [DESTINATION_PATH] PACKAGE_NAME

Note: you can also use -l option to list all possible packages to download. i.e.

$ csDownload -l
  1. After downloading all required packages, set the environment variable CITYSCAPES_DATASET to the location of the dataset. For example, if the dataset is installed in the path /home/user/cityscapes/
$ export CITYSCAPES_DATASET="/home/user/cityscapes/"

Note: you can also export the previous command to your ~/.bashrc file for example.

~/.bashrc ">
$ echo 'export CITYSCAPES_DATASET="/home/user/cityscapes/"' > ~/.bashrc

Note2: we actually need the images only. We do not need the labels as it is stored with the attributes annotations as well.

  1. Run the following to download the json files of CAR compressed as a single zip file extract it and then remove the zip file.
$ python download_CAR.py --url_path "https://DOWNLOAD_LINK_HERE"

To obtain the download link, please email me at kmetwaly511 [at] gmail [dot] com.

At this point, you have 4 json files; namely all.json, train.json, val.json and test.json

PyTorch Example

We provide a pytorch example to read the dataset and retrieve a sample of the dataset in pytorch_dataset_CAR.py. Please, refer to main.It contains a code that goes through the entire dataset.

An output sample of the dataset class is of custom type ModelInputItem. Please refer to the definiton of the class for more details about defined methods and variables.

Citation

If you are planning to use this code or the dataset, please cite the work appropriately as follows.

@misc{car_api,
  title = {{CAR}-{API}: an {API} for {CAR} Dataset},
  key = {{CAR}-{API}},
  howpublished = {\url{http://github.com/kareem-metwaly/car-api}},
  note = {Accessed: 2021-11-16}
}

@misc{metwaly2022car,
  title={{CAR} -- Cityscapes Attributes Recognition A Multi-category Attributes Dataset for Autonomous Vehicles}, 
  author={Kareem Metwaly and Aerin Kim and Elliot Branson and Vishal Monga},
  year={2021},
  eprint={2111.08243},
  archivePrefix={arXiv},
  primaryClass={cs.CV},
  howpublished = {\url{https://arxiv.org/abs/2111.08243}},
  urldate = {2021-11-17},
}
Owner
Kareem Metwaly
Kareem Metwaly
Direct Multi-view Multi-person 3D Human Pose Estimation

Implementation of NeurIPS-2021 paper: Direct Multi-view Multi-person 3D Human Pose Estimation [paper] [video-YouTube, video-Bilibili] [slides] This is

Sea AI Lab 251 Dec 30, 2022
Implementation of StyleSpace Analysis: Disentangled Controls for StyleGAN Image Generation in PyTorch

StyleSpace Analysis: Disentangled Controls for StyleGAN Image Generation Implementation of StyleSpace Analysis: Disentangled Controls for StyleGAN Ima

Xuanchi Ren 86 Dec 07, 2022
Custom Implementation of Non-Deep Networks

ParNet Custom Implementation of Non-deep Networks arXiv:2110.07641 Ankit Goyal, Alexey Bochkovskiy, Jia Deng, Vladlen Koltun Official Repository https

Pritama Kumar Nayak 20 May 27, 2022
Securetar - A streaming wrapper around python tarfile and allow secure handling files and support encryption

Secure Tar Secure Tarfile library It's a streaming wrapper around python tarfile

Pascal Vizeli 2 Dec 09, 2022
PyTorch GPU implementation of the ES-RNN model for time series forecasting

Fast ES-RNN: A GPU Implementation of the ES-RNN Algorithm A GPU-enabled version of the hybrid ES-RNN model by Slawek et al that won the M4 time-series

Kaung 305 Jan 03, 2023
Reinforcement Learning with Q-Learning Algorithm on gym's frozen lake environment implemented in python

Reinforcement Learning with Q Learning Algorithm Q learning algorithm is trained on the gym's frozen lake environment. Libraries Used gym Numpy tqdm P

1 Nov 10, 2021
NeROIC: Neural Object Capture and Rendering from Online Image Collections

NeROIC: Neural Object Capture and Rendering from Online Image Collections This repository is for the source code for the paper NeROIC: Neural Object C

Snap Research 647 Dec 27, 2022
3D Pose Estimation for Vehicles

3D Pose Estimation for Vehicles Introduction This work generates 4 key-points and 2 key-edges from vertices and edges of vehicles as ground truth. The

Jingyi Wang 1 Nov 01, 2021
robomimic: A Modular Framework for Robot Learning from Demonstration

robomimic [Homepage]   [Documentation]   [Study Paper]   [Study Website]   [ARISE Initiative] Latest Updates [08/09/2021] v0.1.0: Initial code and pap

ARISE Initiative 178 Jan 05, 2023
Offline Multi-Agent Reinforcement Learning Implementations: Solving Overcooked Game with Data-Driven Method

Overcooked-AI We suppose to apply traditional offline reinforcement learning technique to multi-agent algorithm. In this repository, we implemented be

Baek In-Chang 14 Sep 16, 2022
Official PyTorch code for CVPR 2020 paper "Deep Active Learning for Biased Datasets via Fisher Kernel Self-Supervision"

Deep Active Learning for Biased Datasets via Fisher Kernel Self-Supervision https://arxiv.org/abs/2003.00393 Abstract Active learning (AL) aims to min

Denis 29 Nov 21, 2022
GAN-STEM-Conv2MultiSlice - Exploring Generative Adversarial Networks for Image-to-Image Translation in STEM Simulation

GAN-STEM-Conv2MultiSlice GAN method to help covert lower resolution STEM images generated by convolution methods to higher resolution STEM images gene

UW-Madison Computational Materials Group 2 Feb 10, 2021
[CVPR 2022] Official code for the paper: "A Stitch in Time Saves Nine: A Train-Time Regularizing Loss for Improved Neural Network Calibration"

MDCA Calibration This is the official PyTorch implementation for the paper: "A Stitch in Time Saves Nine: A Train-Time Regularizing Loss for Improved

MDCA Calibration 21 Dec 22, 2022
PAthological QUpath Obsession - QuPath and Python conversations

PAQUO: PAthological QUpath Obsession Welcome to paquo 👋 , a library for interacting with QuPath from Python. paquo's goal is to provide a pythonic in

Bayer AG 60 Dec 31, 2022
Official Pytorch Implementation of Adversarial Instance Augmentation for Building Change Detection in Remote Sensing Images.

IAug_CDNet Official Implementation of Adversarial Instance Augmentation for Building Change Detection in Remote Sensing Images. Overview We propose a

53 Dec 02, 2022
Experiments with differentiable stacks and queues in PyTorch

Please use stacknn-core instead! StackNN This project implements differentiable stacks and queues in PyTorch. The data structures are implemented in s

Will Merrill 141 Oct 06, 2022
NOD: Taking a Closer Look at Detection under Extreme Low-Light Conditions with Night Object Detection Dataset

NOD (Night Object Detection) Dataset NOD: Taking a Closer Look at Detection under Extreme Low-Light Conditions with Night Object Detection Dataset, BM

Igor Morawski 17 Nov 05, 2022
ResNEsts and DenseNEsts: Block-based DNN Models with Improved Representation Guarantees

ResNEsts and DenseNEsts: Block-based DNN Models with Improved Representation Guarantees This repository is the official implementation of the empirica

Kuan-Lin (Jason) Chen 2 Oct 02, 2022
We present a regularized self-labeling approach to improve the generalization and robustness properties of fine-tuning.

Overview This repository provides the implementation for the paper "Improved Regularization and Robustness for Fine-tuning in Neural Networks", which

NEU-StatsML-Research 21 Sep 08, 2022
SIMULEVAL A General Evaluation Toolkit for Simultaneous Translation

SimulEval SimulEval is a general evaluation framework for simultaneous translation on text and speech. Requirement python = 3.7.0 Installation git cl

Facebook Research 48 Dec 28, 2022