Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9df87d8
Exploration in the datasets
jbhayet May 26, 2021
f6375ea
Merge branch 'main' of github.com:cimat-ris/TF-PathPred into main
jbhayet May 26, 2021
9e49e46
Version with on dimension more for batches
jbhayet May 31, 2021
c0eb387
Batched version
jbhayet May 31, 2021
a233627
Drawing optional
jbhayet Jun 1, 2021
8328913
Comments+modifying functions
jbhayet Jun 1, 2021
bd03728
Changes in the main script
jbhayet Jun 1, 2021
526d7b6
Updates in the testing side
jbhayet Jun 2, 2021
451fa72
Fixed the reconstruction function
jbhayet Jun 2, 2021
b096544
Updated testting stuff
jbhayet Jun 2, 2021
be89d4a
Test OK
jbhayet Jun 2, 2021
a176ae1
Last update to training script
jbhayet Jun 2, 2021
95b830d
Last changes while using batches
jbhayet Jun 9, 2021
ca09ec2
Last changes while using batches
jbhayet Jun 9, 2021
0bb6df7
CVAE and neighbor attention. Visual interface off.
juanBaldelomar98 Nov 8, 2021
b5d01b2
turned off cvae and neighbor attention
juanBaldelomar98 Mar 17, 2022
b836dde
Simplified lecture of test dataset
jbhayet Mar 30, 2022
b4c8cf1
Simplified lecture of test dataset
jbhayet Mar 30, 2022
6e8b9f4
Comments
jbhayet Mar 31, 2022
5d28045
Just commenting
jbhayet Mar 31, 2022
e1823e0
Merge branch 'batched' of github.com:cimat-ris/TF-PathPred into batched
jbhayet Mar 31, 2022
8665293
Commenting
jbhayet Mar 31, 2022
9cb616c
More commenting
jbhayet Mar 31, 2022
38e44e0
Added a few args + sanity check to see the results from training
jbhayet Apr 1, 2022
e6748c8
Set observations to 8 and redefined the offset
jbhayet Apr 2, 2022
310ff0e
Recent version of the preprocessed data files
jbhayet Apr 5, 2022
e0f157e
repaired transformer_CVAE
juanBaldelomar98 Apr 7, 2022
58aa59d
Minor cchanges
jbhayet Apr 7, 2022
79acd2b
Tested differences too
jbhayet Apr 7, 2022
7ab28ea
Merge branch 'batched' of github.com:cimat-ris/TF-PathPred into batched
jbhayet Apr 7, 2022
bc530c1
Minor modifs
jbhayet Apr 7, 2022
1492894
Problem with small trajectories
jbhayet Apr 7, 2022
5ca6b12
good performance with CVAE model
juanBaldelomar98 Apr 7, 2022
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
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/TF-PathPred.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions assets/brand/bootstrap-outline.svg

This file was deleted.

5 changes: 0 additions & 5 deletions assets/brand/bootstrap-solid.svg

This file was deleted.

77 changes: 77 additions & 0 deletions beta_experiment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
from train_TF import train_model
from test_TF import test_model
import numpy as np
import argparse
import math
import os

if __name__ == '__main__':

# Parser arguments
parser = argparse.ArgumentParser(description= 'Experimment for the ')
parser.add_argument('--root-path', '--root',
default='./',
help='path to folder that contain dataset')
parser.add_argument('--dataset', '--ds',
default='',
help='path to folder that contain dataset')
parser.add_argument('--beta', '--bt',
default='0',
help='path to folder that contain dataset')
args = parser.parse_args()

if not os.path.isfile('./generated_data/beta_experiment/results.npy'):
table = np.zeros((5,10))
table[:] = np.NaN
np.save('./generated_data/beta_experiment/results.npy', table)


#------------- Training and updating results in the table of experiment -------------

table = np.load('./generated_data/beta_experiment/results.npy')

datasets = ['ETH-univ','ETH-hotel', 'UCY-zara1', 'UCY-zara2', 'UCY-univ3']
betas = np.array([0,0.3,0.5,1,-1])

try:

test_index = int(args.dataset)
beta_index = int(args.beta)

training_names = datasets.copy()
test_name = [datasets[test_index]]
del training_names[i]
beta = betas[beta_index]

print(f"starting training for {test_name}")
train_model(training_names,test_name,args.root_path,beta = beta, epochs = 50)
ade,fde = test_model(test_name,args.root_path)
ade_average = np.mean(ade)
fde_average = np.mean(fde)
table[test_index,beta_index*2] = ade_average
table[test_index,beta_index*2+1] = fde_average
np.save('./generated_data/beta_experiment/results.npy', table)

except:

print("training did not start either because not demanded or because of poor parameter handling")

#--------------------- Printing results in the table of experiment --------------------

# This generates latex code for the table to be copied directly
print("Printing current values")
for i in range(5):
s = datasets[i]
for j in range(5):
s += " & "
if math.isnan(table[i,2*j]):
s += "NC"
else:
s += str(table[i,2*j])
s += "/"
if math.isnan(table[i,2*j+1]):
s += "NC"
else:
s += str(table[i,2*j+1])
s += " \\\\"
print(s)
Loading