-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Action Chunking with Transformers (ACT) to baselines #640
base: main
Are you sure you want to change the base?
Conversation
before I review code, make sure to add a README.md similar to the other baselines, just use DP as a reference (how to setup the conda/mamba env, citation etc.) |
from torchvision.models._utils import IntermediateLayerGetter | ||
from typing import Dict, List | ||
|
||
from ..utils import NestedTensor, is_main_process |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use absolute imports when possible, it is just the style choice this repo uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed them to absolute imports, but I'm not sure if they are correct. please let me know if they need to be fixed. I also added a README file.
|
||
```bash | ||
conda create -n act-ms python=3.9 | ||
conda activate act-ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the conda env act-ms is created and you do a local pip install. However a simple setup.py file is still missing, can you create that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a simple setup.py.
from torchvision.models._utils import IntermediateLayerGetter | ||
from typing import Dict, List | ||
|
||
from examples.baselines.act.act.utils import NestedTensor, is_main_process |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imports should be absolute and relative to act (which you pip install -e .)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated my code.
import torch | ||
from torch import nn | ||
|
||
from examples.baselines.act.act.utils import NestedTensor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same issue as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated my code.
Final thing probably, can you create an examples.sh script for users to run? Should contain 2 scripts for a few envs, 1 for demonstration loading/replaying and 1 for training. Maybe just 2 for state based and 2 exampls for RGBD that work okay is fine. |
replaced by train_rgbd.py
#617