Skip to content

Commit

Permalink
Merge pull request #8 from KeplerC/main
Browse files Browse the repository at this point in the history
update readme with pip
  • Loading branch information
KeplerC authored Apr 28, 2024
2 parents 80f10e3 + 6935d37 commit 58e30f8
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 78 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@

🦊 Fog-RT-X: An Efficient and Scalable Data Collection and Management Framework For Robotics Learning. Support [Open-X-Embodiment](https://robotics-transformer-x.github.io/), 🤗[HuggingFace](https://huggingface.co/).

🦊 Fog-RT-X considers both speed 🚀 and memory efficiency 📈 with active metadata and lazily-loaded trajectory data. It supports flexible and distributed dataset partitioning.
🦊 Fog-RT-X considers both speed 🚀 and memory efficiency 📈 with active metadata and lazily-loaded trajectory data. It supports flexible and distributed dataset partitioning. It provides native support to cloud storage.

[Design Doc](https://docs.google.com/document/d/1woLQVLWsySGjFuz8aCsaLoc74dXQgIccnWRemjlNDws/edit#heading=h.irrfcedesnvr) | [Dataset Visualization](https://keplerc.github.io/openxvisualizer/)

## Install

```bash
pip install fogx
pip install fog_x
```

## Usage

```py
import fogx as fox
import fog_x

# 🦊 Dataset Creation
# from distributed dataset storage
dataset = fox.Dataset(load_from = ["/tmp/rtx", "s3://fox_storage/"])
dataset = fog_x.Dataset(
name="demo_ds",
path="~/test_dataset", # can be AWS S3, Google Bucket!
)

# 🦊 Data collection:
# create a new trajectory
Expand All @@ -43,6 +46,7 @@ desired_episodes = episode_info.filter(episode_info["collector"] == "User 2")

# 🦊 Data Sharing and Usage:
# Export and share the dataset as standard Open-X-Embodiment format
# it also supports hugging face, and more!
dataset.export(desired_episodes, format="rtx")
# Load with pytorch dataloader
torch.utils.data.DataLoader(dataset.as_pytorch_dataset(desired_episodes))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion fog_x/VERSION

This file was deleted.

30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "fog_x"
version = "0.1.0.beta.3"
dependencies = [
"pandas",
"numpy",
"polars",
"pillow",
"pyarrow",
"opencv-python",
"sqlalchemy==1.4.51",
]
description = "An Efficient and Scalable Data Collection and Management Framework For Robotics Learning"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
keywords = ["robotics", "data", "management", "collection", "framework", "learning"]

[project.optional-dependencies]
hf = ["datasets"]
rtx = ["tensorflow", "tensorflow_datasets", "envlogger"]
aws = ["boto3", "smart_open"]
torch = ["torch"]
all = ["datasets", "tensorflow", "tensorflow_datasets", "envlogger", "boto3", "smart_open", "torch", "torchvision"]

[project.urls]
homepage = "https://github.com/BerkeleyAutomation/fog_x/"
10 changes: 0 additions & 10 deletions requirements-full.txt

This file was deleted.

17 changes: 0 additions & 17 deletions requirements.txt

This file was deleted.

46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

0 comments on commit 58e30f8

Please sign in to comment.