A virtual environment that generates vision-language tasks with varying complexity.
Reason this release was yanked:
broken
Project description
iWISDM
iWISDM, short for instructed-Virtual VISual Decision Making, is a virtual environment capable of generating a limitless array of vision-language tasks with varying complexity. iWISDM encompasses a broad spectrum of tasks that engage executive functions such as inhibition of action, working memory, attentional set, task switching, and schema generalization. It is also a scalable and extensible framework which allows users to easily define their own task space and stimuli dataset. iWISDM builds on the compositional nature of human behavior, and the fact that complex tasks are often constructed by combining smaller task units together in time.
Below is an example of the generated tasks:
iWISDM inherits several classes from COG (https://github.com/google/cog) to build task graphs. For convenience, we have pre-implemented several commonly used cognitive tasks in task_bank.py.
For usage instructions, please refer to Usage
Additionally, for convenience, we have pre-generated four benchmarks of increased complexity level for evaluation of large multi-modal models.
These datasets can be generated from /benchmarking or downloaded: iWISDM_benchsets.tar.gz
For further details, please refer to (https://arxiv.org/submit/5678755/view)
Usage
Install Instructions
Poetry
Install Poetry
curl -sSL https://install.python-poetry.org | python3 -
Conda + Poetry
Create conda python environment
conda create --name iwisdm python=3.11
Install packages
poetry install
ShapeNet Subset
A large-scale repository of shapes represented by 3D CAD models of objects (Chang et. al. 2015).
Pre-rendered Dataset Download
Basic Usage
# imports
from iwisdm import make
from iwisdm import read_write
# environment initialization
with open('../benchmarking/configs/high_complexity_all.json', 'r') as f:
config = json.load(f) # using pre-defined AutoTask configuration
env = make(env_id='ShapeNet')
env.set_env_spec(
env.init_env_spec(
auto_gen_config=config,
)
)
# AutoTask procedural task generation and saving trial
tasks = env.generate_tasks(10) # generate 10 random task graphs and tasks
_, (_, temporal_task) = tasks[0]
trials = env.generate_trials(tasks=[temporal_task]) # generate a trial
imgs, _, info_dict = trials[0]
read_write.write_trial(imgs, info_dict, f'output/trial_{i}')
See /tutorials for more examples.
Acknowledgements
This repository builds upon the foundational work presented in the COG paper (https://arxiv.org/abs/1803.06092).
Yang, Guangyu Robert, et al. "A dataset and architecture for visual reasoning with a working memory." Proceedings of the European Conference on Computer Vision (ECCV). 2018.
Citation
If you find iWISDM useful in your research, please use the following BibTex:
@inproceedings{lei2024iwisdm,
title={iWISDM: Assessing instruction following in multimodal models at scale},
author={Lei, Xiaoxuan and Gomez, Lucas and Bai, Hao Yuan and Bashivan, Pouya},
booktitle={Conference on Lifelong Learning Agents (CoLLAs 2024)},
year={2024}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iwisdm-0.1.1.tar.gz.
File metadata
- Download URL: iwisdm-0.1.1.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46e6db0cc57986cde520d51d296a7d845d490d73284bb1043cf8bf36e62918fc
|
|
| MD5 |
2e058d140e5c1e61b90315a8cc391575
|
|
| BLAKE2b-256 |
6b0df8a4804dc1ec304555b2e4c571f8bb82dc86690a52b6f279b69e1cbc1ba5
|
File details
Details for the file iwisdm-0.1.1-py3-none-any.whl.
File metadata
- Download URL: iwisdm-0.1.1-py3-none-any.whl
- Upload date:
- Size: 51.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b39c8b12016d39a76edeec7ca5a720d02c2fe7256fc0d0d2b28049b37af96f8
|
|
| MD5 |
14d96bfd09065af46050e3f8b9c63900
|
|
| BLAKE2b-256 |
2ee0348bfca43fa7a5df9661fba4b0c35205641c987497b1602f8e530be93314
|