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
ELSED: Enhanced Line SEgment Drawing

ELSED: Enhanced Line SEgment Drawing This repository contains the source code of ELSED: Enhanced Line SEgment Drawing the fastest line segment detecto

Iago Suárez 125 Dec 31, 2022
Its a Plant Leaf Disease Detection System based on Machine Learning.

My_Project_Code Its a Plant Leaf Disease Detection System based on Machine Learning. I have used Tomato Leaves Dataset from kaggle. This system detect

Sanskriti Sidola 3 Jun 15, 2022
Neural network for stock price prediction

neural_network_for_stock_price_prediction Neural networks for stock price predic

2 Feb 04, 2022
Why Are You Weird? Infusing Interpretability in Isolation Forest for Anomaly Detection

Why, hello there! This is the supporting notebook for the research paper — Why Are You Weird? Infusing Interpretability in Isolation Forest for Anomal

2 Dec 14, 2021
TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentation, CVPR2022

TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentation Paper Links: TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentati

Hust Visual Learning Team 253 Dec 21, 2022
Monitor your ML jobs on mobile devices📱, especially for Google Colab / Kaggle

TF Watcher TF Watcher is a simple to use Python package and web app which allows you to monitor 👀 your Machine Learning training or testing process o

Rishit Dagli 54 Nov 01, 2022
Code for NeurIPS2021 submission "A Surrogate Objective Framework for Prediction+Programming with Soft Constraints"

This repository is the code for NeurIPS 2021 submission "A Surrogate Objective Framework for Prediction+Programming with Soft Constraints". Edit 2021/

10 Dec 20, 2022
MMdet2-based reposity about lightweight detection model: Nanodet, PicoDet.

Lightweight-Detection-and-KD MMdet2-based reposity about lightweight detection model: Nanodet, PicoDet. This repo also includes detection knowledge di

Egqawkq 12 Jan 05, 2023
Unimodal Face Classification with Multimodal Training

Unimodal Face Classification with Multimodal Training This is a PyTorch implementation of the following paper: Unimodal Face Classification with Multi

Wenbin Teng 3 Jul 06, 2022
A map update dataset and benchmark

MUNO21 MUNO21 is a dataset and benchmark for machine learning methods that automatically update and maintain digital street map datasets. Previous dat

16 Nov 30, 2022
내가 보려고 정리한 <프로그래밍 기초 Ⅰ> / organized for me

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

KIMMINSEO 1 Mar 07, 2022
JAX bindings to the Flatiron Institute Non-uniform Fast Fourier Transform (FINUFFT) library

JAX bindings to FINUFFT This package provides a JAX interface to (a subset of) the Flatiron Institute Non-uniform Fast Fourier Transform (FINUFFT) lib

Dan Foreman-Mackey 32 Oct 15, 2022
Materials for my scikit-learn tutorial

Scikit-learn Tutorial Jake VanderPlas email: [email protected] twitter: @jakevdp gith

Jake Vanderplas 1.6k Dec 30, 2022
Repo público onde postarei meus estudos de Python, buscando aprender por meio do compartilhamento do aprendizado!

Seja bem vindo à minha repo de Estudos em Python 3! Este é um repositório criado por um programador amador que estuda tópicos de finanças, estatística

32 Dec 24, 2022
Multi-Agent Reinforcement Learning (MARL) method to learn scalable control polices for multi-agent target tracking.

scalableMARL Scalable Reinforcement Learning Policies for Multi-Agent Control CD. Hsu, H. Jeong, GJ. Pappas, P. Chaudhari. "Scalable Reinforcement Lea

Christopher Hsu 17 Nov 17, 2022
Neuron Merging: Compensating for Pruned Neurons (NeurIPS 2020)

Neuron Merging: Compensating for Pruned Neurons Pytorch implementation of Neuron Merging: Compensating for Pruned Neurons, accepted at 34th Conference

Woojeong Kim 33 Dec 30, 2022
Open-source codebase for EfficientZero, from "Mastering Atari Games with Limited Data" at NeurIPS 2021.

EfficientZero (NeurIPS 2021) Open-source codebase for EfficientZero, from "Mastering Atari Games with Limited Data" at NeurIPS 2021. Thank you for you

Weirui Ye 671 Jan 03, 2023
AI-Fitness-Tracker - AI Fitness Tracker With Python

AI-Fitness-Tracker We have build a AI based Fitness Tracker using OpenCV and Pyt

Sharvari Mangale 5 Feb 09, 2022
PyTorch ,ONNX and TensorRT implementation of YOLOv4

PyTorch ,ONNX and TensorRT implementation of YOLOv4

4.2k Jan 01, 2023
A commany has recently introduced a new type of bidding, the average bidding, as an alternative to the bid given to the current maximum bidding

Business Problem A commany has recently introduced a new type of bidding, the average bidding, as an alternative to the bid given to the current maxim

Kübra Bilinmiş 1 Jan 15, 2022