Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Context Labeling App/Datasets
Context Labeling App/compass-env
Context Labeling App/__pycache__
.vscode/launch.json
.vscode/launch.json
__pycache__/
*.pyc
3 changes: 3 additions & 0 deletions TCN/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ def preprocess(set, var, labeltype, raw_feature_dir):
# kinematics currently contains position, velocity, orientation, and gripper angle
kine_dir_all = glob.glob(os.path.join("/".join(sub.split('/')[0:-1]),"kinematics/*"))

# Print the number of transcription files found
print(f"Found {len(ges_dir_all)} transcription files")

# For each transcription file
for ges_dir in ges_dir_all: #[0:1]:
print("\t Preprocessing: " + ges_dir)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ def labelGs(npGrouped):

# For each transcript
transcripts = glob.glob(transcriptDir+"/*.txt")
print(f"Found {len(transcripts)} transcription files")
for transcript in transcripts: #[0:5]: #[0:1]:
# get file name of transcript
trial = transcript.split("/")[-1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ def labelMPs(npGrouped):

# For each transcript
transcripts = glob.glob(transcriptDir+"/*.txt")
print(f"Found {len(transcripts)} transcription files")
for transcript in transcripts: #[0:5]: #[0:1]:
# get file name of transcript
trial = transcript.split("/")[-1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def getDistance(translated, truth):

# Get list of trials
trials = os.listdir(mpDir)
print(f"Found {len(trials)} transcription files")

# Set up to take average edit distance
editDistances = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def getDistance(translated, truth):

# Get list of trials
trials = os.listdir(mpDir)
print(f"Found {len(trials)} transcription files")

# Set up to take average edit distance
editDistances = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ def getDistance(translated, truth):

# Get list of trials
trials = os.listdir(mpDir)
print(f"Found {len(trials)} transcription files")

# Set up to take average edit distance
editDistances = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def getDistance(translated, truth):

# Get list of trials
trials = os.listdir(mpDir)
print(f"Found {len(trials)} transcription files")

# Set up to take average edit distance
editDistances = []
Expand Down