-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 60b2e14
Showing
171 changed files
with
18,829 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
python_lint: | ||
docker: | ||
- image: circleci/python:3.7 | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
pip install --user --progress-bar off flake8 typing | ||
flake8 . | ||
test: | ||
docker: | ||
- image: circleci/python:3.7 | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
pip install --user --progress-bar off scipy pytest | ||
pip install --user --progress-bar off --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html | ||
pytest . | ||
workflows: | ||
build: | ||
jobs: | ||
- python_lint | ||
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Code of Conduct | ||
|
||
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. | ||
Please read the [full text](https://code.fb.com/codeofconduct/) | ||
so that you can understand what actions will and will not be tolerated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Contributing to DETR | ||
We want to make contributing to this project as easy and transparent as | ||
possible. | ||
|
||
## Our Development Process | ||
Minor changes and improvements will be released on an ongoing basis. Larger changes (e.g., changesets implementing a new paper) will be released on a more periodic basis. | ||
|
||
## Pull Requests | ||
We actively welcome your pull requests. | ||
|
||
1. Fork the repo and create your branch from `master`. | ||
2. If you've added code that should be tested, add tests. | ||
3. If you've changed APIs, update the documentation. | ||
4. Ensure the test suite passes. | ||
5. Make sure your code lints. | ||
6. If you haven't already, complete the Contributor License Agreement ("CLA"). | ||
|
||
## Contributor License Agreement ("CLA") | ||
In order to accept your pull request, we need you to submit a CLA. You only need | ||
to do this once to work on any of Facebook's open source projects. | ||
|
||
Complete your CLA here: <https://code.facebook.com/cla> | ||
|
||
## Issues | ||
We use GitHub issues to track public bugs. Please ensure your description is | ||
clear and has sufficient instructions to be able to reproduce the issue. | ||
|
||
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe | ||
disclosure of security bugs. In those cases, please go through the process | ||
outlined on that page and do not file a public issue. | ||
|
||
## Coding Style | ||
* 4 spaces for indentation rather than tabs | ||
* 80 character line length | ||
* PEP8 formatting following [Black](https://black.readthedocs.io/en/stable/) | ||
|
||
## License | ||
By contributing to DETR, you agree that your contributions will be licensed | ||
under the LICENSE file in the root directory of this source tree. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: "🐛 Bugs" | ||
about: Report bugs in DETR | ||
title: Please read & provide the following | ||
|
||
--- | ||
|
||
## Instructions To Reproduce the 🐛 Bug: | ||
|
||
1. what changes you made (`git diff`) or what code you wrote | ||
``` | ||
<put diff or code here> | ||
``` | ||
2. what exact command you run: | ||
3. what you observed (including __full logs__): | ||
``` | ||
<put logs here> | ||
``` | ||
4. please simplify the steps as much as possible so they do not require additional resources to | ||
run, such as a private dataset. | ||
|
||
## Expected behavior: | ||
|
||
If there are no obvious error in "what you observed" provided above, | ||
please tell us the expected behavior. | ||
|
||
## Environment: | ||
|
||
Provide your environment information using the following command: | ||
``` | ||
python -m torch.utils.collect_env | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: "How to do something❓" | ||
about: How to do something using DETR? | ||
|
||
--- | ||
|
||
## ❓ How to do something using DETR | ||
|
||
Describe what you want to do, including: | ||
1. what inputs you will provide, if any: | ||
2. what outputs you are expecting: | ||
|
||
|
||
NOTE: | ||
|
||
1. Only general answers are provided. | ||
If you want to ask about "why X did not work", please use the | ||
[Unexpected behaviors](https://github.com/facebookresearch/detr/issues/new/choose) issue template. | ||
|
||
2. About how to implement new models / new dataloader / new training logic, etc., check documentation first. | ||
|
||
3. We do not answer general machine learning / computer vision questions that are not specific to DETR, such as how a model works, how to improve your training/make it converge, or what algorithm/methods can be used to achieve X. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: "Unexpected behaviors" | ||
about: Run into unexpected behaviors when using DETR | ||
title: Please read & provide the following | ||
|
||
--- | ||
|
||
If you do not know the root cause of the problem, and wish someone to help you, please | ||
post according to this template: | ||
|
||
## Instructions To Reproduce the Issue: | ||
|
||
1. what changes you made (`git diff`) or what code you wrote | ||
``` | ||
<put diff or code here> | ||
``` | ||
2. what exact command you run: | ||
3. what you observed (including __full logs__): | ||
``` | ||
<put logs here> | ||
``` | ||
4. please simplify the steps as much as possible so they do not require additional resources to | ||
run, such as a private dataset. | ||
|
||
## Expected behavior: | ||
|
||
If there are no obvious error in "what you observed" provided above, | ||
please tell us the expected behavior. | ||
|
||
If you expect the model to converge / work better, note that we do not give suggestions | ||
on how to train a new model. | ||
Only in one of the two conditions we will help with it: | ||
(1) You're unable to reproduce the results in DETR model zoo. | ||
(2) It indicates a DETR bug. | ||
|
||
## Environment: | ||
|
||
Provide your environment information using the following command: | ||
``` | ||
python -m torch.utils.collect_env | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.nfs* | ||
*.ipynb | ||
*.pyc | ||
.dumbo.json | ||
.DS_Store | ||
.*.swp | ||
*.pth | ||
**/__pycache__/** | ||
.ipynb_checkpoints/ | ||
datasets/data/ | ||
experiment-* | ||
*.tmp | ||
*.pkl | ||
**/.mypy_cache/* | ||
.mypy_cache/* | ||
not_tracked_dir/ | ||
.vscode | ||
.python-version | ||
*.sbatch | ||
*.egg-info | ||
build | ||
dist | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="STTran_train" type="PythonConfigurationType" factoryName="Python" folderName="STTran" singleton="false"> | ||
<module name="VideoSG-on-trackformer" /> | ||
<option name="INTERPRETER_OPTIONS" value="" /> | ||
<option name="PARENT_ENVS" value="true" /> | ||
<envs> | ||
<env name="PYTHONUNBUFFERED" value="1" /> | ||
<env name="CUDA_VISIBLE_DEVICES" value="0" /> | ||
</envs> | ||
<option name="SDK_HOME" value="C:\Users\Yong\anaconda3\envs\py37\python.exe" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | ||
<option name="IS_MODULE_SDK" value="false" /> | ||
<option name="ADD_CONTENT_ROOTS" value="true" /> | ||
<option name="ADD_SOURCE_ROOTS" value="false" /> | ||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | ||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/train_sttran.py" /> | ||
<option name="PARAMETERS" value="with vidhoi sttran train_split=train_v30 val_split=validation_v10 resume="models/pretrained_models/vidhoi==sttran_sgdet_8a31e0b==checkpoint_epoch4.pth" num_workers=0 eval_only=True" /> | ||
<option name="SHOW_COMMAND_LINE" value="false" /> | ||
<option name="EMULATE_TERMINAL" value="false" /> | ||
<option name="MODULE_MODE" value="false" /> | ||
<option name="REDIRECT_INPUT" value="false" /> | ||
<option name="INPUT_FILE" value="" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="STTran_train_frcnn" type="PythonConfigurationType" factoryName="Python" folderName="STTran" singleton="false"> | ||
<module name="VideoSG-on-trackformer" /> | ||
<option name="INTERPRETER_OPTIONS" value="" /> | ||
<option name="PARENT_ENVS" value="true" /> | ||
<envs> | ||
<env name="PYTHONUNBUFFERED" value="1" /> | ||
<env name="CUDA_VISIBLE_DEVICES" value="2" /> | ||
</envs> | ||
<option name="SDK_HOME" value="" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | ||
<option name="IS_MODULE_SDK" value="true" /> | ||
<option name="ADD_CONTENT_ROOTS" value="true" /> | ||
<option name="ADD_SOURCE_ROOTS" value="false" /> | ||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | ||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/train_frcnn.py" /> | ||
<option name="PARAMETERS" value="with frcnn vidhoi resume=models/ais_trained/vidhoi/ais_frcnn_8d96b1b/checkpoint_epoch3.pth train_split=train_v30 val_split=validation_v100 output_dir=models/debug eval_only=True sgg_postprocessing_tracker=BYTETracker" /> | ||
<option name="SHOW_COMMAND_LINE" value="false" /> | ||
<option name="EMULATE_TERMINAL" value="false" /> | ||
<option name="MODULE_MODE" value="false" /> | ||
<option name="REDIRECT_INPUT" value="false" /> | ||
<option name="INPUT_FILE" value="" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="STTran_train_frcnn_IOU" type="PythonConfigurationType" factoryName="Python" folderName="STTran" singleton="false"> | ||
<module name="trackformer" /> | ||
<option name="INTERPRETER_OPTIONS" value="" /> | ||
<option name="PARENT_ENVS" value="true" /> | ||
<envs> | ||
<env name="PYTHONUNBUFFERED" value="1" /> | ||
<env name="CUDA_VISIBLE_DEVICES" value="3" /> | ||
</envs> | ||
<option name="SDK_HOME" value="sftp://yongzhang@10.26.1.27:22/home/yongzhang/anaconda3/envs/py39_latest_torch/bin/python" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | ||
<option name="IS_MODULE_SDK" value="false" /> | ||
<option name="ADD_CONTENT_ROOTS" value="true" /> | ||
<option name="ADD_SOURCE_ROOTS" value="false" /> | ||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | ||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/train_frcnn.py" /> | ||
<option name="PARAMETERS" value="with frcnn vidhoi train_split=train_v30 val_split=validation_v10 output_dir=models/debug eval_only=True resume=models/ais_trained/vidhoi/ais_frcnn_8d96b1b/checkpoint_epoch3.pth sgg_postprocessing_tracker=IOUTracker" /> | ||
<option name="SHOW_COMMAND_LINE" value="false" /> | ||
<option name="EMULATE_TERMINAL" value="false" /> | ||
<option name="MODULE_MODE" value="false" /> | ||
<option name="REDIRECT_INPUT" value="false" /> | ||
<option name="INPUT_FILE" value="" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="demo_CP" type="PythonConfigurationType" factoryName="Python" folderName="tracking" singleton="false"> | ||
<module name="trackformer" /> | ||
<option name="INTERPRETER_OPTIONS" value="" /> | ||
<option name="PARENT_ENVS" value="true" /> | ||
<envs> | ||
<env name="PYTHONUNBUFFERED" value="1" /> | ||
<env name="CUDA_VISIBLE_DEVICES" value="0" /> | ||
</envs> | ||
<option name="SDK_HOME" value="sftp://yongzhang@10.26.1.27:22/home/yongzhang/anaconda3/envs/py39_latest_torch/bin/python" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | ||
<option name="IS_MODULE_SDK" value="false" /> | ||
<option name="ADD_CONTENT_ROOTS" value="true" /> | ||
<option name="ADD_SOURCE_ROOTS" value="true" /> | ||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | ||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/track.py" /> | ||
<option name="PARAMETERS" value="with dataset_name=MOT17-04-FRCNN frame_range.start=0.5 verbose=True write_images=False obj_detect_checkpoint_file="/home/yongzhang/projects/trackformer/models/ais_trained/mot17_half/ais_consistent_pairing+lr=1e-4-cb73b12/checkpoint.pth" output_dir="/home/yongzhang/projects/trackformer/models/ais_trained/mot17_half/ais_consistent_pairing+lr=1e-4-cb73b12/demos"" /> | ||
<option name="SHOW_COMMAND_LINE" value="false" /> | ||
<option name="EMULATE_TERMINAL" value="false" /> | ||
<option name="MODULE_MODE" value="false" /> | ||
<option name="REDIRECT_INPUT" value="false" /> | ||
<option name="INPUT_FILE" value="" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="demo_trackformer" type="PythonConfigurationType" factoryName="Python" folderName="tracking" singleton="false"> | ||
<module name="trackformer" /> | ||
<option name="INTERPRETER_OPTIONS" value="" /> | ||
<option name="PARENT_ENVS" value="true" /> | ||
<envs> | ||
<env name="PYTHONUNBUFFERED" value="1" /> | ||
<env name="CUDA_VISIBLE_DEVICES" value="0" /> | ||
</envs> | ||
<option name="SDK_HOME" value="sftp://yongzhang@10.26.1.27:22/home/yongzhang/anaconda3/envs/py39_latest_torch/bin/python" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | ||
<option name="IS_MODULE_SDK" value="false" /> | ||
<option name="ADD_CONTENT_ROOTS" value="true" /> | ||
<option name="ADD_SOURCE_ROOTS" value="true" /> | ||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | ||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/track.py" /> | ||
<option name="PARAMETERS" value="with dataset_name=MOT17-04-FRCNN frame_range.start=0.5 verbose=True write_images=False obj_detect_checkpoint_file="/home/yongzhang/projects/trackformer/models/ais_trained/mot17_half/ais_trackformer+clip_length=2-41b496d/checkpoint.pth" output_dir=""/home/yongzhang/projects/trackformer/models/ais_trained/mot17_half/ais_trackformer+clip_length=2-41b496d/demos"" /> | ||
<option name="SHOW_COMMAND_LINE" value="false" /> | ||
<option name="EMULATE_TERMINAL" value="false" /> | ||
<option name="MODULE_MODE" value="false" /> | ||
<option name="REDIRECT_INPUT" value="false" /> | ||
<option name="INPUT_FILE" value="" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="generate_coco_from_VidHOI" type="PythonConfigurationType" factoryName="Python" folderName="datasets" singleton="false"> | ||
<module name="trackformer" /> | ||
<option name="INTERPRETER_OPTIONS" value="" /> | ||
<option name="PARENT_ENVS" value="true" /> | ||
<envs> | ||
<env name="PYTHONUNBUFFERED" value="1" /> | ||
</envs> | ||
<option name="SDK_HOME" value="sftp://yongzhang@10.26.1.27:22/home/yongzhang/anaconda3/envs/py39_latest_torch/bin/python" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | ||
<option name="IS_MODULE_SDK" value="false" /> | ||
<option name="ADD_CONTENT_ROOTS" value="true" /> | ||
<option name="ADD_SOURCE_ROOTS" value="true" /> | ||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | ||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/generate_coco_from_vidhoi.py" /> | ||
<option name="PARAMETERS" value="" /> | ||
<option name="SHOW_COMMAND_LINE" value="false" /> | ||
<option name="EMULATE_TERMINAL" value="false" /> | ||
<option name="MODULE_MODE" value="false" /> | ||
<option name="REDIRECT_INPUT" value="false" /> | ||
<option name="INPUT_FILE" value="" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="generate_coco_from_actiongenome" type="PythonConfigurationType" factoryName="Python" folderName="datasets"> | ||
<module name="trackformer" /> | ||
<option name="INTERPRETER_OPTIONS" value="" /> | ||
<option name="PARENT_ENVS" value="true" /> | ||
<envs> | ||
<env name="PYTHONUNBUFFERED" value="1" /> | ||
</envs> | ||
<option name="SDK_HOME" value="sftp://yongzhang@10.26.1.27:22/home/yongzhang/anaconda3/envs/py39_latest_torch/bin/python" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | ||
<option name="IS_MODULE_SDK" value="false" /> | ||
<option name="ADD_CONTENT_ROOTS" value="true" /> | ||
<option name="ADD_SOURCE_ROOTS" value="true" /> | ||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> | ||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/generate_coco_from_actiongenome.py" /> | ||
<option name="PARAMETERS" value="" /> | ||
<option name="SHOW_COMMAND_LINE" value="false" /> | ||
<option name="EMULATE_TERMINAL" value="false" /> | ||
<option name="MODULE_MODE" value="false" /> | ||
<option name="REDIRECT_INPUT" value="false" /> | ||
<option name="INPUT_FILE" value="" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
Oops, something went wrong.