Skip to content

Instantly share code, notes, and snippets.

Attention: use the default system-wide cmake, gcc, and g++; otherwise, libs and c++ headers can be reported missing and you will have to specify /usr/include and /usr/lib.

mamba create -n teleoper python=3.10 -y
mamba activate teleoper

pip install catkin_pkg colorama
droot = "/home/xxxx/data"
kroot = f"{droot}/kelm-corpus/updated-2021"
kname = "kelm_generated_corpus.jsonl"
ename = "entities.jsonl"
tekgen_train = "quadruples-train.tsv"
tekgen_test = "quadruples-test.tsv"
tekgen_val = "quadruples-validation.tsv"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zhaoyanpeng
zhaoyanpeng / run_retrieval.sh
Created August 13, 2022 19:02
Evaluate an AT model on AT retrieval tasks
#!/usr/bin/sh
root=./
export OMP_NUM_THREADS=32
export CUDA_VISIBLE_DEVICES=$2
run_type=$1
gpu_list=(${CUDA_VISIBLE_DEVICES//,/ })
('three_hop.json', 0, '/mnt/yann/code/clevr-caption/question_generation_2.0/CAPTION_templates/three_hop.json')
How many <Z4> <C4> <M4> <S4>s are <R3> the <Z3> <C3> <M3> <S3> [that is] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>?
What number of <Z4> <C4> <M4> <S4>s are <R3> the <Z3> <C3> <M3> <S3> [that is] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>?
There is a <Z3> <C3> <M3> <S3> [that is] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>; how many <Z4> <C4> <M4> <S4>s are <R3> it?
There is a <Z3> <C3> <M3> <S3> [that is] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>; what number of <Z4> <C4> <M4> <S4>s are <R3> it?
There are <ANS> <Z4> <C4> <M4> <S4>s [that are] <R3> the <Z3> <C3> <M3> <S3> [that is] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>.
The number of <Z4> <C4> <M4> <S4>s [that are] <R3> the <Z3> <C3> <M3> <S3> [that is] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S> is <ANS>.
There is a <Z3> <C3>
('one_hop.json', 0, '/mnt/yann/code/clevr-caption/question_generation_2.0/CAPTION_templates/one_hop.json')
What number of <Z2> <C2> <M2> <S2>s are <R> the <Z> <C> <M> <S>?
How many <Z2> <C2> <M2> <S2>s are <R> the <Z> <C> <M> <S>?
There is a <Z> <C> <M> <S>; how many <Z2> <C2> <M2> <S2>s are <R> it?
There is a <Z> <C> <M> <S>; what number of <Z2> <C2> <M2> <S2>s are <R> it?
The number of <Z2> <C2> <M2> <S2>s [that are] <R> the <Z> <C> <M> <S> is <ANS>.
There are <ANS> <Z2> <C2> <M2> <S2>s [that are] <R> the <Z> <C> <M> <S>.
There is a <Z> <C> <M> <S>; there are <ANS> <Z2> <C2> <M2> <S2>s [that are] <R> it.
('two_hop.json', 0, '/mnt/yann/code/clevr-caption/question_generation_2.0/CAPTION_templates/two_hop.json')
How many <Z3> <C3> <M3> <S3>s are <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>?
What number of <Z3> <C3> <M3> <S3>s are <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>?
There is a <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>; how many <Z3> <C3> <M3> <S3>s are <R2> it?
There is a <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>; what number of <Z3> <C3> <M3> <S3>s are <R2> it?
There are <ANS> <Z3> <C3> <M3> <S3>s [that are] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>.
The number of <Z3> <C3> <M3> <S3>s [that are] <R2> the <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S> is <ANS>.
There is a <Z2> <C2> <M2> <S2> [that is] <R> the <Z> <C> <M> <S>; there are <ANS> <Z3> <C3> <M3> <S3>s [that are] <R2> it.
('same_relate.json', 0, '/mnt/yann/code/clevr-caption/question_generation_2.0/CAPTION_templates/same_relate.json')
Are there any other things that have the same size as the <Z> <C> <M> <S>?
Is there anything else that has the same size as the <Z> <C> <M> <S>?
Is there any other thing that has the same size as the <Z> <C> <M> <S>?
Are there any other things that are the same size as the <Z> <C> <M> <S>?
Is there anything else that is the same size as the <Z> <C> <M> <S>?
Is there any other thing that is the same size as the <Z> <C> <M> <S>?
There are some other things that have the same size as the <Z> <C> <M> <S>.
('zero_hop.json', 0, '/mnt/yann/code/clevr-caption/question_generation_2.0/CAPTION_templates/zero_hop.json')
How many <Z> <C> <M> <S>s are there?
What number of <Z> <C> <M> <S>s are there?
There are <ANS> <Z> <C> <M> <S>s.
The number of <Z> <C> <M> <S>s is <ANS>.
('zero_hop.json', 1, '/mnt/yann/code/clevr-caption/question_generation_2.0/CAPTION_templates/zero_hop.json')
('single_or.json', 0, '/mnt/yann/code/clevr-caption/question_generation_2.0/CAPTION_templates/single_or.json')
How many things are [either] <Z> <C> <M> <S>s or <Z2> <C2> <M2> <S2>s?
How many objects are [either] <Z> <C> <M> <S>s or <Z2> <C2> <M2> <S2>s?
What number of things are [either] <Z> <C> <M> <S>s or <Z2> <C2> <M2> <S2>s?
What number of objects are [either] <Z> <C> <M> <S>s or <Z2> <C2> <M2> <S2>s?
There are <ANS> things that are [either] <Z> <C> <M> <S>s or <Z2> <C2> <M2> <S2>s.
There are <ANS> objects that are [either] <Z> <C> <M> <S>s or <Z2> <C2> <M2> <S2>s.
The number of things that are [either] <Z> <C> <M> <S>s or <Z2> <C2> <M2> <S2>s is <ANS>.