SaraPieri commited on
Commit
0f4b1a2
1 Parent(s): 626ec32
finetune.py CHANGED
@@ -126,6 +126,8 @@ if __name__ == '__main__':
126
  print('Saving model to', model_path)
127
  torch.save(model.module.state_dict(), model_path)
128
 
 
 
129
  for epoch in range(args.epochs):
130
  # Train
131
  model.train()
@@ -161,7 +163,6 @@ if __name__ == '__main__':
161
  test_loader = test_dset
162
  model.eval()
163
 
164
- last_accuracy = 0.0
165
 
166
  with torch.no_grad():
167
  print('*'*80)
 
126
  print('Saving model to', model_path)
127
  torch.save(model.module.state_dict(), model_path)
128
 
129
+ last_accuracy = 0.0
130
+
131
  for epoch in range(args.epochs):
132
  # Train
133
  model.train()
 
163
  test_loader = test_dset
164
  model.eval()
165
 
 
166
 
167
  with torch.no_grad():
168
  print('*'*80)
helper.bash CHANGED
@@ -1 +1,4 @@
1
- python finetune.py --data-location /l/users/u21010238/data/AiorNot --model-location /home/sara.pieri/Documents/model-soups/models --batch-size 56 --name finetune_cp_AiorNot_model_0 --checkpoint_path /home/sara.pieri/Documents/model-soups/models/model_0.pt
 
 
 
 
1
+ python finetune.py --data-location /l/users/u21010238/data/AiorNot --model-location /home/sara.pieri/Documents/model-soups/models --batch-size 56 --name finetune_cp_AiorNot_model_1 --checkpoint_path /home/sara.pieri/Documents/model-soups/models/model_1.pt
2
+ python finetune.py --data-location /l/users/u21010238/data/AiorNot --model-location /home/sara.pieri/Documents/model-soups/models --batch-size 56 --name finetune_cp_AiorNot_model_2 --checkpoint_path /home/sara.pieri/Documents/model-soups/models/model_2.pt
3
+ python finetune.py --data-location /l/users/u21010238/data/AiorNot --model-location /home/sara.pieri/Documents/model-soups/models --batch-size 56 --name finetune_cp_AiorNot_model_3 --checkpoint_path /home/sara.pieri/Documents/model-soups/models/model_3.pt
4
+ python finetune.py --data-location /l/users/u21010238/data/AiorNot --model-location /home/sara.pieri/Documents/model-soups/models --batch-size 56 --name finetune_cp_AiorNot_model_4 --checkpoint_path /home/sara.pieri/Documents/model-soups/models/model_4.pt
models/finetune_cp_AiorNot_model_0.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6fec067ce46bc2f297f4ed084a6bf73d8f873b0151ff896f7ee32c386b22b6b
3
+ size 453864271
models/finetune_cp_AiorNot_model_1.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3598bbb9fc6df5644d693253f3325e53971eadb842140a6e52d3dd5ae4bac23d
3
+ size 453864271
models/finetune_cp_AiorNot_model_2.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f64db72147c161e3da2709ff331b47d6a996fb0280385e7155643110bfb92c44
3
+ size 453864271
models/finetune_cp_AiorNot_model_3.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:027263b39345e7a358812b93b1133f45076e144ef01694479f080986f1d046b5
3
+ size 453864271
models/finetune_cp_AiorNot_model_4.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ab7f44e7f45acdb836fd03dafc0b05a7754325c0bb9ebabc770faa590a09b8c
3
+ size 453864271