Important
If you have questions or find bugs or anything, you can contact us in our organisation's discussion.
This repository holds the object detector and feature extractor for running things. Essentially, this is the model that takes an image and returns a series of features for that image. This repository can be used as a standalone to extract features before running things on policy, or used as an API to extract features during inference.
Run the server for the Alexa Arena
Running this command as is will automatically download and use the fine-tuned checkpoint from our HF models repo and use the same settings we used when we ran experiments within the Alexa Arena.
python src/emma_perception/commands/run_server.py
For training things, we need to extract the features for each image.
Here's the command you can use to extract features from images. Obviously, you can change the paths to the folder of images, and the output dir, and whatever else you want.
python src/emma_perception/commands/extract_visual_features.py --images_dir <path_to_images> --output_dir <path to output dir>
argparse
arguments for the command
perception/src/emma_perception/commands/extract_visual_features.py
Lines 20 to 50 in e20855a
If you want to use the fine-tuned model to extract features with the model we trained on the Alexa Arena, just add --is_arena
onto the above command. This will automatically download and use the fine-tuned checkpoint from our HF models repo and use the same settings we used when we ran experiments within the Alexa Arena.
- Dependency management with Poetry
- Easier task running with Poe the Poet
- Code formatting with Black and Prettier
- Linting with pre-commit and Flake8, using the strict wemake-python-styleguide
- Automated Python Docstring Formatting with docformatter
- Continuous integration with GitHub Actions
- Testing with pytest
- Code coverage with coverage.py
- Static type-checking with mypy
- Automated Python syntax updates with pyupgrade
- Security audit with Bandit
- Manage project labels with GitHub Labeler