From c764ff17bf344b4285e979eb26f14f694d0d3dcb Mon Sep 17 00:00:00 2001 From: paulnovello Date: Tue, 23 Apr 2024 15:58:46 +0200 Subject: [PATCH] feat: moved blob models inside the repo for test robustness --- assets/pytest_data/.gitkeep | 0 assets/pytest_models/blobs_mlp.h5 | Bin 0 -> 27096 bytes assets/pytest_models/blobs_mlp.pt | Bin 0 -> 3487 bytes tests/tests_torch/torch_methods_utils.py | 4 ++-- 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 assets/pytest_data/.gitkeep create mode 100644 assets/pytest_models/blobs_mlp.h5 create mode 100644 assets/pytest_models/blobs_mlp.pt diff --git a/assets/pytest_data/.gitkeep b/assets/pytest_data/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/assets/pytest_models/blobs_mlp.h5 b/assets/pytest_models/blobs_mlp.h5 new file mode 100644 index 0000000000000000000000000000000000000000..ff382f9a47b6109d79693b0c155c43044ae263ff GIT binary patch literal 27096 zcmeHP30xCL7Z2b8Di%cx6s?q6iw6*n>|&B#sESZUM6A}M2qA>aa5M=BDuVi9p4 zSVd6leNiR53fXOI(OSVzYt`aKJ?hzN>sPH-t9*ORpe&|X?e}?*^|yJMnYVA={P(># zGcSX)0tXDVZu3SP5qnu$idu+lxUcY|4qP>Hd<`ta_6YFB4A2}v*PHWS%tWn3Y@0o( zw*m5>aefK4^q?0QM@h>vp0*?g=wddr>EmrD(iL zqtJ$@sx;cTq(r90!OV<%lJzFOFH6AB5ymT+i?8C^+ll7orwQt#&}F8X0}r+(wUf(s7O$;QRpxHj)@cO z1;ZGmE!j%oH|&r&_W)(K&3L@{YyW;UUa&F)`VS4_G++Y)b3q&+jGk^D9&X}?`tb_| zkx0kjnxu(VCr#j=1Jk*PiyutYBxj{sq1AE-I7^+JhpRqLQ6=i)6l&)_PR@MrVCpA1 zvk6i%qXqUd3myrYm*fkEz20KP-|68g+>t*ql$W@0;EI}=))-8aBKru8xv>) zpX2O~ZQ}x`B2vxvrqiUbojp#Yl*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iV&CTJVNG42i4 z!CSK2!z0|G5$GE6R#!Mb3**f_OK48~I46AR@Po$*r(p_s3%|C$#m~9h)IE5Vpl{dx EFOQ3y3;+NC literal 0 HcmV?d00001 diff --git a/tests/tests_torch/torch_methods_utils.py b/tests/tests_torch/torch_methods_utils.py index 5621f755..448a5204 100644 --- a/tests/tests_torch/torch_methods_utils.py +++ b/tests/tests_torch/torch_methods_utils.py @@ -33,8 +33,8 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu") -model_path = os.path.expanduser("~/") + ".oodeel/saved_models" -data_path = os.path.expanduser("~/") + ".oodeel/datasets" +model_path = "./assets/pytest_models" +data_path = "./assets/pytest_data" os.makedirs(model_path, exist_ok=True) os.makedirs(data_path, exist_ok=True)