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
The official implementation of paper "Finding the Task-Optimal Low-Bit Sub-Distribution in Deep Neural Networks" (IJCV under review).

DGMS This is the code of the paper "Finding the Task-Optimal Low-Bit Sub-Distribution in Deep Neural Networks". Installation Our code works with Pytho

Runpei Dong 3 Aug 28, 2022
Unified Instance and Knowledge Alignment Pretraining for Aspect-based Sentiment Analysis

Unified Instance and Knowledge Alignment Pretraining for Aspect-based Sentiment Analysis Requirements python 3.7 pytorch-gpu 1.7 numpy 1.19.4 pytorch_

12 Oct 29, 2022
Example of semantic segmentation in Keras

keras-semantic-segmentation-example Example of semantic segmentation in Keras Single class example: Generated data: random ellipse with random color o

53 Mar 23, 2022
一些经典的CTR算法的复现; LR, FM, FFM, AFM, DeepFM,xDeepFM, PNN, DCN, DCNv2, DIFM, AutoInt, FiBiNet,AFN,ONN,DIN, DIEN ... (pytorch, tf2.0)

CTR Algorithm 根据论文, 博客, 知乎等方式学习一些CTR相关的算法 理解原理并自己动手来实现一遍 pytorch & tf2.0 保持一颗学徒的心! Schedule Model pytorch tensorflow2.0 paper LR ✔️ ✔️ \ FM ✔️ ✔️ Fac

luo han 149 Dec 20, 2022
내가 보려고 정리한 <프로그래밍 기초 Ⅰ> / organized for me

Programming-Basics 프로그래밍 기초 Ⅰ 아카이브 Do it! 점프 투 파이썬 주차 강의주제 비고 1주차 Syllabus 2주차 자료형 - 숫자형 3주차 자료형 - 문자열형 4주차 입력과 출력 5주차 제어문 - 조건문 if 6주차 제어문 - 반복문 whil

KIMMINSEO 1 Mar 07, 2022
MHFormer: Multi-Hypothesis Transformer for 3D Human Pose Estimation

MHFormer: Multi-Hypothesis Transformer for 3D Human Pose Estimation This repo is the official implementation of "MHFormer: Multi-Hypothesis Transforme

Vegetabird 281 Jan 07, 2023
BookMyShowPC - Movie Ticket Reservation App made with Tkinter

Book My Show PC What is this? Movie Ticket Reservation App made with Tkinter. Tk

The Nithin Balaji 3 Dec 09, 2022
FreeSOLO for unsupervised instance segmentation, CVPR 2022

FreeSOLO: Learning to Segment Objects without Annotations This project hosts the code for implementing the FreeSOLO algorithm for unsupervised instanc

NVIDIA Research Projects 253 Jan 02, 2023
Official implementation for Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encoder at NeurIPS 2020

Likelihood-Regret Official implementation of Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encoder at NeurIPS 2020. T

Xavier 33 Oct 12, 2022
OMNIVORE is a single vision model for many different visual modalities

Omnivore: A Single Model for Many Visual Modalities [paper][website] OMNIVORE is a single vision model for many different visual modalities. It learns

Meta Research 451 Dec 27, 2022
The code for 'Deep Residual Fourier Transformation for Single Image Deblurring'

Deep Residual Fourier Transformation for Single Image Deblurring Xintian Mao, Yiming Liu, Wei Shen, Qingli Li and Yan Wang code will be released soon

145 Dec 13, 2022
MinHash, LSH, LSH Forest, Weighted MinHash, HyperLogLog, HyperLogLog++, LSH Ensemble

datasketch: Big Data Looks Small datasketch gives you probabilistic data structures that can process and search very large amount of data super fast,

Eric Zhu 1.9k Jan 07, 2023
FairMOT - A simple baseline for one-shot multi-object tracking

FairMOT - A simple baseline for one-shot multi-object tracking

Yifu Zhang 3.6k Jan 08, 2023
Use CLIP to represent video for Retrieval Task

A Straightforward Framework For Video Retrieval Using CLIP This repository contains the basic code for feature extraction and replication of results.

Jesus Andres Portillo Quintero 54 Dec 22, 2022
IJON is an annotation mechanism that analysts can use to guide fuzzers such as AFL.

IJON SPACE EXPLORER IJON is an annotation mechanism that analysts can use to guide fuzzers such as AFL. Using only a small (usually one line) annotati

Chair for Sys­tems Se­cu­ri­ty 146 Dec 16, 2022
Official PyTorch implementation for Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers, a novel method to visualize any Transformer-based network. Including examples for DETR, VQA.

PyTorch Implementation of Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers 1 Using Colab Please notic

Hila Chefer 489 Jan 07, 2023
PClean: A Domain-Specific Probabilistic Programming Language for Bayesian Data Cleaning

PClean: A Domain-Specific Probabilistic Programming Language for Bayesian Data Cleaning Warning: This is a rapidly evolving research prototype.

MIT Probabilistic Computing Project 190 Dec 27, 2022
Enigma-Plus - Python based Enigma machine simulator with some extra features

Enigma-Plus Python based Enigma machine simulator with some extra features Examp

1 Jan 05, 2022
Code for the paper "A Study of Face Obfuscation in ImageNet"

A Study of Face Obfuscation in ImageNet Code for the paper: A Study of Face Obfuscation in ImageNet Kaiyu Yang, Jacqueline Yau, Li Fei-Fei, Jia Deng,

35 Oct 04, 2022
Code to reproduce the results in the paper "Tensor Component Analysis for Interpreting the Latent Space of GANs".

Tensor Component Analysis for Interpreting the Latent Space of GANs [ paper | project page ] Code to reproduce the results in the paper "Tensor Compon

James Oldfield 4 Jun 17, 2022