Experiments with Circle Loss on AIC 2021’s Vehicle Retrieval Dataset

Info Usage Extract metadata The dataset provided metadata in the form of an XML file train_label.xml which can be hard to processed. We first convert this into a more accessible JSON file. The result will be saved as list/train_image_metadata.json. Split data Since we use the data above for training, evaluation, and testing, we split it into corresponding CSV files. The results are stored in the list folder as CSVs file of tuples of (image_id, vehicle_id, cam_id): reid_train.csv: contains the training […]

Read more

MetaMorph: Learning Universal Controllers with Transformers

This is the code for the paper MetaMorph: Learning Universal Controllers with Transformers Agrim Gupta, Linxi Fan, Surya Ganguli, Fei-Fei Li Multiple domains like vision, natural language, and audio are witnessing tremendous progress by leveraging Transformers for large scale pre-training followed by task specific fine tuning. In contrast, in robotics we primarily train a single robot for a single task. However, modular robot systems now allow for the flexible combination of general-purpose building blocks into task optimized morphologies. However, given […]

Read more

Dataset Distillation by Matching Training Trajectories

Project Page | Paper This repo contains code for training expert trajectories and distilling synthetic data from our Dataset Distillation by Matching Training Trajectories paper (CVPR 2022). Please see our project page for more results. Dataset Distillation by Matching Training Trajectories George Cazenavette, Tongzhou Wang, Antonio Torralba, Alexei A. Efros, Jun-Yan Zhu CMU, MIT, UC Berkeley CVPR 2022 The task of “Dataset Distillation” is to learn a small number of synthetic images such that a model trained on this set […]

Read more

Implementation of some unbalanced loss like focal_loss, dice_loss, DSC Loss, GHM Loss et.al

Implementation of some unbalanced loss for NLP task like focal_loss, dice_loss, DSC Loss, GHM Loss et.al Summary Here is a loss implementation repository included unbalanced loss How to use? You can find all the loss usage information in test_loss.py. Here is a simple demo of usage: import torch from unbalanced_loss.focal_loss import MultiFocalLoss batch_size, num_class = 64, 10 Loss_Func = MultiFocalLoss(num_class=num_class, gamma=2.0, reduction=

Read more

Python wrapper kernel for Crystal

Simple Python wrapper kernel for Crystal language. ICrystal is the widely used Jupyter kernel for Crystal, which uses ICR. On the other hand, this crystal_kernel uses the official Crystal interpreter. Forked from bash_kernel installation Make sure the Crystal’s interpreter starts with crystal i. Then type the following commands. pip install crystal_kernel python -m crystal_kernel.install Development Something is better than nothing. GitHub View Github    

Read more

Please stop writing shell scripts

When you’re automating some task, for example packaging your application for Docker, you’ll often find yourself writing shell scripts. You might have a bash script to drive the packaging process, and another script as an entry point for the container. As your packaging grows in complexity, so does your shell script. Everything works fine. And then, one day, your shell script does something completely wrong. That’s when you realize your mistake: bash, and shell scripting languages in general, are mostly […]

Read more

The first released system towards complex meters` detection and recognition, which is implemented by computer vision techniques

This is the first released system towards detection and recognition of complex meters in wild. The system can be divided into three moduels. Fisrtly, a yolo-based detector is applied to get pure meter region. Secondly, a spatial transformer module is eatablished to rectify the position of meter. Lastly, an end-to-end network is to read meter values, which is implemented by pointer/dail predcition and key number learning. Visulization results Left row is the original image, middle row is the process of […]

Read more

Official implementation of AdaTime: A Benchmarking Suite for Domain Adaptation on Time Series Data

by: Mohamed Ragab*, Emadeldeen Eldele*, Wee Ling Tan, Chuan-Sheng Foo, Zhenghua Chen, Min Wu, Chee Kwoh, Xiaoli Li AdaTime is a PyTorch suite to systematically and fairly evaluate different domain adaptation methods on time series data. Requirmenets: Python3 Pytorch==1.7 Numpy==1.20.1 scikit-learn==0.24.1 Pandas==1.2.4 skorch==0.10.0 (For DEV risk calculations) openpyxl==3.0.7 (for classification reports) Wandb=0.12.7 (for sweeps) Datasets Available Datasets We used four public datasets in this study. We also provide the preprocessed versions as follows: Adding New Dataset Structure of data To […]

Read more
1 202 203 204 205 206 943