diff --git a/data_split.csv b/data_split.csv new file mode 100644 index 0000000000000000000000000000000000000000..9b80481148ac5881a4066a6a9acc2fcd2a961eab --- /dev/null +++ b/data_split.csv @@ -0,0 +1,31 @@ +imgs,labels,split,fold +/home/abdelrahman.elsayed/ROSE/images/11.png,/home/abdelrahman.elsayed/ROSE/masks/11_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/15.png,/home/abdelrahman.elsayed/ROSE/masks/15_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/20.png,/home/abdelrahman.elsayed/ROSE/masks/20_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/25.png,/home/abdelrahman.elsayed/ROSE/masks/25_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/10.png,/home/abdelrahman.elsayed/ROSE/masks/10_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/26.png,/home/abdelrahman.elsayed/ROSE/masks/26_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/28.png,/home/abdelrahman.elsayed/ROSE/masks/28_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/29.png,/home/abdelrahman.elsayed/ROSE/masks/29_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/27.png,/home/abdelrahman.elsayed/ROSE/masks/27_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/24.png,/home/abdelrahman.elsayed/ROSE/masks/24_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/03.png,/home/abdelrahman.elsayed/ROSE/masks/03_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/22.png,/home/abdelrahman.elsayed/ROSE/masks/22_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/01.png,/home/abdelrahman.elsayed/ROSE/masks/01_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/09.png,/home/abdelrahman.elsayed/ROSE/masks/09_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/23.png,/home/abdelrahman.elsayed/ROSE/masks/23_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/08.png,/home/abdelrahman.elsayed/ROSE/masks/08_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/02.png,/home/abdelrahman.elsayed/ROSE/masks/02_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/12.png,/home/abdelrahman.elsayed/ROSE/masks/12_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/16.png,/home/abdelrahman.elsayed/ROSE/masks/16_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/05.png,/home/abdelrahman.elsayed/ROSE/masks/05_mask.png,train,0 +/home/abdelrahman.elsayed/ROSE/images/18.png,/home/abdelrahman.elsayed/ROSE/masks/18_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/06.png,/home/abdelrahman.elsayed/ROSE/masks/06_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/13.png,/home/abdelrahman.elsayed/ROSE/masks/13_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/19.png,/home/abdelrahman.elsayed/ROSE/masks/19_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/21.png,/home/abdelrahman.elsayed/ROSE/masks/21_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/04.png,/home/abdelrahman.elsayed/ROSE/masks/04_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/17.png,/home/abdelrahman.elsayed/ROSE/masks/17_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/30.png,/home/abdelrahman.elsayed/ROSE/masks/30_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/14.png,/home/abdelrahman.elsayed/ROSE/masks/14_mask.png,val,0 +/home/abdelrahman.elsayed/ROSE/images/07.png,/home/abdelrahman.elsayed/ROSE/masks/07_mask.png,val,0 diff --git a/images/01.png b/images/01.png new file mode 100644 index 0000000000000000000000000000000000000000..e4711e28fc647255e9c9c19e927a26d7fb17add5 --- /dev/null +++ b/images/01.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2da8af1f453a6a759cfc04f4d2b7f01fabd45f642f16aa4c5a125f56cb7d626a +size 188041 diff --git a/images/02.png b/images/02.png new file mode 100644 index 0000000000000000000000000000000000000000..ddf91bd5bd07e8ab53fff5ac2e9d9e92e6a5d898 --- /dev/null +++ b/images/02.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9adfa48833b0206eee67e3030f2da8a34ae53ffa6cdf43702905675c1be868d +size 195947 diff --git a/images/03.png b/images/03.png new file mode 100644 index 0000000000000000000000000000000000000000..d587eb6c8eee3f12280e7be2af189d56fe0cf417 --- /dev/null +++ b/images/03.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99292f8fb60c7020568d1f1f65281aa370c6a35ac9e069fe608caa66fdb7e0ff +size 175852 diff --git a/images/04.png b/images/04.png new file mode 100644 index 0000000000000000000000000000000000000000..c368d034c15dff6e55338fcbeeb5a6a4304919ef --- /dev/null +++ b/images/04.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7017cba76dbaf45bbed4d8a2edbf01a64049e713189283a00fa5463d1228bad0 +size 187977 diff --git a/images/05.png b/images/05.png new file mode 100644 index 0000000000000000000000000000000000000000..bc8927df714371db4a6f0bb5e2595ccd43de3b22 --- /dev/null +++ b/images/05.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e3812976d4fd1762cd15746daf54f0d05f7ee702a9c70a8304b26db2a217d1f +size 199738 diff --git a/images/06.png b/images/06.png new file mode 100644 index 0000000000000000000000000000000000000000..8d605cbdee9302b73b92d5764a279f9f0a2f6778 --- /dev/null +++ b/images/06.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c392fbb39c3f8bda332d82cf12e9ce75cc8136caf28f29495ff574f945e6d67d +size 201079 diff --git a/images/07.png b/images/07.png new file mode 100644 index 0000000000000000000000000000000000000000..2fb810183892b8689136994443e9c724c5c18375 --- /dev/null +++ b/images/07.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ae146f1a79818a2b87386188d29917540f5c6b5ab636ca2aba7ca751838d4a1 +size 192248 diff --git a/images/08.png b/images/08.png new file mode 100644 index 0000000000000000000000000000000000000000..67f389b9b8aee6a3335684a93f3342620996c0c0 --- /dev/null +++ b/images/08.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:988d3aca3ba1349e27b5b53880ecb7117296aa00844258559686125acae2d57e +size 167100 diff --git a/images/09.png b/images/09.png new file mode 100644 index 0000000000000000000000000000000000000000..cd2d867df4ee2f0cb8a374e44ea5e5b33711892e --- /dev/null +++ b/images/09.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd677d4f148ae85a4fdb1a54bf7ef6a3f7529ca41de45e751c8009cd29f191c5 +size 170559 diff --git a/images/10.png b/images/10.png new file mode 100644 index 0000000000000000000000000000000000000000..9a4ee062f971c5327d358413469adf3d94348679 --- /dev/null +++ b/images/10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:faddae4c80dec8c8476f04bac206e2738ff5c37a7bc228b403e0fd7d5215d539 +size 165396 diff --git a/images/11.png b/images/11.png new file mode 100644 index 0000000000000000000000000000000000000000..f7aaa8648232e683f173309a7686632461b614d2 --- /dev/null +++ b/images/11.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91550f01105bb37ebdc482d558b7696a6a4440623290eae8cf9f42866adc1c39 +size 187908 diff --git a/images/12.png b/images/12.png new file mode 100644 index 0000000000000000000000000000000000000000..8c0c3e8dbde8a0100576643538e30e30171253a8 --- /dev/null +++ b/images/12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a52c6efd16f17eaaf2b8ba6ed37243e9714760ae6eaacf279f2298c104e784bc +size 197107 diff --git a/images/13.png b/images/13.png new file mode 100644 index 0000000000000000000000000000000000000000..ce40054b074a8796851cdb8be819e621da6451e2 --- /dev/null +++ b/images/13.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a0234298324a02f2a4b6916e40e401cbaccbe25803689a4e8808d9075c51321 +size 186241 diff --git a/images/14.png b/images/14.png new file mode 100644 index 0000000000000000000000000000000000000000..de877c82544bd203f6695bd21c9749a326317b07 --- /dev/null +++ b/images/14.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b58a09733ebf77f56805feb09320d748b1d5718c8d40fa01af84f5027da53420 +size 160315 diff --git a/images/15.png b/images/15.png new file mode 100644 index 0000000000000000000000000000000000000000..d376f423e1e97a033b86a8adf089118f0cd7f345 --- /dev/null +++ b/images/15.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06505c4049fee77eb67be9358b2598812d27b4b00e58a7d912de6dddd857247c +size 187204 diff --git a/images/16.png b/images/16.png new file mode 100644 index 0000000000000000000000000000000000000000..47be577f6b6ec9d304926cf63b55067860537525 --- /dev/null +++ b/images/16.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f881afc72517310beecdd3855d8ad97d33175744dcf637ede6e10cb696bb6cba +size 191215 diff --git a/images/17.png b/images/17.png new file mode 100644 index 0000000000000000000000000000000000000000..952bd3f97a3c32188397102c8fa913ee162aadda --- /dev/null +++ b/images/17.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0855a681f1934e6a17372949bc28bbf048441a9683b892f5c1d7358b15d6313b +size 197239 diff --git a/images/18.png b/images/18.png new file mode 100644 index 0000000000000000000000000000000000000000..a2eb26c352b8eb4a668b2d34fbfa0c32544f9f07 --- /dev/null +++ b/images/18.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e20a479e44b75114b7907550024c309cda709e2f8d3752863f0196afbaa0034b +size 178233 diff --git a/images/19.png b/images/19.png new file mode 100644 index 0000000000000000000000000000000000000000..836240178f20741fe7640788438801c6e129fed5 --- /dev/null +++ b/images/19.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42ed1c65eb90ab0ec0ec0d0489392414e468f720ad3a86a25793c5dcd07febf3 +size 198311 diff --git a/images/20.png b/images/20.png new file mode 100644 index 0000000000000000000000000000000000000000..e77661bff17f0cb5b69dca16dd95345050418692 --- /dev/null +++ b/images/20.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:466a99958f58a79d273413b12b97a6ce0b96d16b6ca0aa59787986e1912273e8 +size 190713 diff --git a/images/21.png b/images/21.png new file mode 100644 index 0000000000000000000000000000000000000000..d65152f5574c1f1719d5c40d8ed67a4d558bb841 --- /dev/null +++ b/images/21.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9aa55e6215dea1c2b58bbdd39670922c96f832d88934cdc657c8d5feb2e8e8bc +size 200054 diff --git a/images/22.png b/images/22.png new file mode 100644 index 0000000000000000000000000000000000000000..5c994a2f7a33390d8b30f399da1c92838b132e07 --- /dev/null +++ b/images/22.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f41c63d2530f74b10a82d960c3667c5baf38a6f4a51ea64da2a3d2b159c7f505 +size 190844 diff --git a/images/23.png b/images/23.png new file mode 100644 index 0000000000000000000000000000000000000000..cf0b8d666ecd5ebc3a6a6cc5f1a1dae6944e2dd6 --- /dev/null +++ b/images/23.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c18b174b1571dd79d3216ad968a780099a12b692fe9554b78bcb1cad28128bd9 +size 186094 diff --git a/images/24.png b/images/24.png new file mode 100644 index 0000000000000000000000000000000000000000..8c57dc5c19133a52ec5bec20e2d6986d693803e4 --- /dev/null +++ b/images/24.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3eb0b4f70238329d8977e50030c408676c6cba76233f466cb6300424784ec98a +size 188347 diff --git a/images/25.png b/images/25.png new file mode 100644 index 0000000000000000000000000000000000000000..57f849ed06c7a0aa47c7446797e5eb58ad81de08 --- /dev/null +++ b/images/25.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcad40544a6fcf1af5ccfa802947717ce1b9fd69ee74b1f5d5b7877eae90ea47 +size 180266 diff --git a/images/26.png b/images/26.png new file mode 100644 index 0000000000000000000000000000000000000000..f6237788153d815c124d74c406e2d1612705e5c5 --- /dev/null +++ b/images/26.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f495be04a958b90721d6e3cd0e5723c19dff4d61f0a228dc1612c9ce625deed0 +size 198146 diff --git a/images/27.png b/images/27.png new file mode 100644 index 0000000000000000000000000000000000000000..d41e665bda4043fbe8a831519981a5a4f49c4b6c --- /dev/null +++ b/images/27.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1824fb5ee12a33bf20106c3bcbe09274c07afa2e83517b343469022d6299ee66 +size 182704 diff --git a/images/28.png b/images/28.png new file mode 100644 index 0000000000000000000000000000000000000000..eea67b93fc3cdc86cc9e0a2d79fa9e757a7ef8b7 --- /dev/null +++ b/images/28.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6e079c81607d00beba0d39cb670c32738b841ab2a99165fdafc709630807942 +size 166330 diff --git a/images/29.png b/images/29.png new file mode 100644 index 0000000000000000000000000000000000000000..4faa82ba472792b39ed1c8d03474e5a619a4c769 --- /dev/null +++ b/images/29.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54b35ef4e78f475c2c12130d309241d9325ad5eca2e604867fb1ddbaec4aba75 +size 193347 diff --git a/images/30.png b/images/30.png new file mode 100644 index 0000000000000000000000000000000000000000..94c139f6d08c0974aa7efc0ff001b4616a89075a --- /dev/null +++ b/images/30.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c172b2ecd666e3f64be5e13131b400f93f39e50062d8897f745362dd54ec3207 +size 172741 diff --git a/masks/01_mask.png b/masks/01_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..10bf9fd87fad8a0f96438dfdfd1c5cd6715d21d2 --- /dev/null +++ b/masks/01_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:986ae15159a6bf6f5cb48ab21ded8ceb61b667582671807dad3da0bd45fbc798 +size 11440 diff --git a/masks/02_mask.png b/masks/02_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..30a00cf61274363a4147935236ca80d10fb245b2 --- /dev/null +++ b/masks/02_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:710ddeb87cc70b67f72bdd8db3f306c6ec72948cef259ac4a22db2e9e5a1e004 +size 12093 diff --git a/masks/03_mask.png b/masks/03_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..4806ff3610faad483fb694b52668ed4706c89880 --- /dev/null +++ b/masks/03_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79a37cd4eabbdc064762abc75dad5c7be1fd858161b4ca3b25ab4570a8f1861f +size 7428 diff --git a/masks/04_mask.png b/masks/04_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..741428fef99e88cf1d4dc0369067458962bb91eb --- /dev/null +++ b/masks/04_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89858e8b28404d1de11c41794065966fbdb11bc4aaf680b371e74cb18065bf27 +size 8601 diff --git a/masks/05_mask.png b/masks/05_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..75942c8e5ecd52f0c89d528a57a18ed14e243025 --- /dev/null +++ b/masks/05_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2727f4f7ae2ec6895a054d077f4a76992aa77280eaa8e18486e04bec69685e65 +size 9840 diff --git a/masks/06_mask.png b/masks/06_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..82f954efca79440719526532dedc8a0fbca9a09a --- /dev/null +++ b/masks/06_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21c4c7eca04c86f06ee57480b31073a3151965c79b925ebbc0bfe47a22f9764a +size 10518 diff --git a/masks/07_mask.png b/masks/07_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..1f1e9aee3d401dca6cfd93202127649d29ca5def --- /dev/null +++ b/masks/07_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f00220e344e33103216bd8d9b1f3cda824bb4f9b32e29f4bda3a8e44c4a4673 +size 9221 diff --git a/masks/08_mask.png b/masks/08_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..8556efb138bed8f7c98295b15c4367a71f6db3b5 --- /dev/null +++ b/masks/08_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:235ab2ffa75012fd41abf619b77f7df34b28668dee0dd74d65262aac4b75c439 +size 8165 diff --git a/masks/09_mask.png b/masks/09_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..11be69a0ec379311777e2e39358dca9e7d535841 --- /dev/null +++ b/masks/09_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0524675b2cf5fbd5f4b4eab7ca46628e09ee5879cb2c430a9b8c5eb539b744c +size 7517 diff --git a/masks/10_mask.png b/masks/10_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..3f148872928764480819c7554e63bc927a6dfbe4 --- /dev/null +++ b/masks/10_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90887d1076401d5edb2033250a50adfacf1476d90be8b10e7214b3cde2ac22c8 +size 7203 diff --git a/masks/11_mask.png b/masks/11_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..9d7913c5d4dac710e806666b4e1e8fb515011687 --- /dev/null +++ b/masks/11_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8261cdf29bade5e8095ae10f523493a75c32c491f167dea768dab92cac5bd6c8 +size 10673 diff --git a/masks/12_mask.png b/masks/12_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..bfc1a4e3570cdcbd92bcf5ab62b2eecaa57ecca8 --- /dev/null +++ b/masks/12_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd8c1039a2875156293c6cb604b4433a7d7c224e2390eeda36d75246103c6e04 +size 11240 diff --git a/masks/13_mask.png b/masks/13_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..11afcf6d6aaaa6b01d76d322f80161a2ff266145 --- /dev/null +++ b/masks/13_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d46738dd2254494aab7a6de2941feaa37f3c2386f004f72415bc7b09a7060164 +size 10722 diff --git a/masks/14_mask.png b/masks/14_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..ce1a8b77699ebfe3aff23fdfcd9107b7174ffffb --- /dev/null +++ b/masks/14_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddcaedb4deff928a7ce71322e4a6b1af8143da9f4105290cd23c186020a92031 +size 8221 diff --git a/masks/15_mask.png b/masks/15_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..1999f935079f995ba0e674d20da4819dc97bcf4e --- /dev/null +++ b/masks/15_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:661f78d425af5ddcf393c60e811ef43144f1ec3d70c23a67f30d8fb61d53d12c +size 9991 diff --git a/masks/16_mask.png b/masks/16_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..52b7d98406cc74b21a0e6487524ae9db64f321b8 --- /dev/null +++ b/masks/16_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d98c1dba04f90170a0135706664c084fc2775a8ffed674fe5d9889f8b47f6717 +size 10579 diff --git a/masks/17_mask.png b/masks/17_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..3bde357af45d51949c132e2c2ca32c7ad7f66095 --- /dev/null +++ b/masks/17_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c26c5d1198669b4334c098eeff8f1f35e1b461db21c05eb87886b519ea8d4926 +size 9851 diff --git a/masks/18_mask.png b/masks/18_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..b910391ed424d6423c563c325c117e6ca2554db2 --- /dev/null +++ b/masks/18_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c24afce8a3a0472de2a423dbe0a3ab4b85b9899be4ad21598dd74dbc7b8ca369 +size 8847 diff --git a/masks/19_mask.png b/masks/19_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..33f898d41cc8d5528afbb6f4115cbebdb2a7b715 --- /dev/null +++ b/masks/19_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76a8013ef9d957539b000db54342eb41d9dfa94a0b6a6fec1e546007bac521ce +size 10772 diff --git a/masks/20_mask.png b/masks/20_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..8a86ec567b888d04f9007ffd6e2e66e54adf88a9 --- /dev/null +++ b/masks/20_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecffe3a23eb6a2cb0f5d8f9fb95b77ba61446d5bf294ae430514854053624b37 +size 10014 diff --git a/masks/21_mask.png b/masks/21_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..e2ee3771c40f02f23f7f4a91d3311d45559f9987 --- /dev/null +++ b/masks/21_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28ea26e01baa82b4a1ecf7dd958eaef1af6b246c07116b08a54e69626cf460c5 +size 10279 diff --git a/masks/22_mask.png b/masks/22_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..2207a1158cade5a8415d4c5260f8150134baf7f0 --- /dev/null +++ b/masks/22_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a410079d524e8026086237e8bc74f405b868bd60418495a03280acf1c9402f17 +size 9743 diff --git a/masks/23_mask.png b/masks/23_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..99b3cb395c76d9703fcfce1ca0b21ed78454313e --- /dev/null +++ b/masks/23_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bde87ec8951c7ea9dda66bb8f56a8ae322e2f8c2253acdd56572c52002097e24 +size 9463 diff --git a/masks/24_mask.png b/masks/24_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..7ded73e9f72d95511821dac842cf0523388f4457 --- /dev/null +++ b/masks/24_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bffd049ed08e822073a16ae0713a14d6091bd9a2b389fe4728f5cf126466bc09 +size 10145 diff --git a/masks/25_mask.png b/masks/25_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..cfe662d7578e37d8493ed9330dd6724795b6c07b --- /dev/null +++ b/masks/25_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78952c8506ad2a9ac4261da46cbe51a6b7a333b950ea60dba7ea407dc7e902af +size 10430 diff --git a/masks/26_mask.png b/masks/26_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..a4151138e593fb8ca996c07f50bdd3192633ded9 --- /dev/null +++ b/masks/26_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93f96ca652949dba91f04d5ced6d12976f2ab3beac1651135eb4621a75bd14b2 +size 11979 diff --git a/masks/27_mask.png b/masks/27_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..27d874a1e9154cf1225d97873bada12e15ba606b --- /dev/null +++ b/masks/27_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f302b1de3668ac03f90c66eb7e3f1ece1dd209ac9da932c4a73fca24e11571f2 +size 10951 diff --git a/masks/28_mask.png b/masks/28_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..535cc7f8c115e90acc22d73261a7a35390a78297 --- /dev/null +++ b/masks/28_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6fbf9796ace0db3c553d4b4cbd46889b6e6f7e0db9f5da15f6ecd2314fbf4b92 +size 10200 diff --git a/masks/29_mask.png b/masks/29_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..df5e03a94a870be34cf822fae35ee61c4f4f9d2f --- /dev/null +++ b/masks/29_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1f9011ee4905b71e30e878ddf6bfa9fb5b06a7c31baa3a258e7f3f785d76601 +size 8472 diff --git a/masks/30_mask.png b/masks/30_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..1f6fdefb0e816e3b622492abf74018a4e632d0f2 --- /dev/null +++ b/masks/30_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56b28e9a9faa4980bd4994ad7f23c1acd6d7eab09edd3afaf9724c9402ee5a99 +size 6725 diff --git a/utils/generate_csv.py b/utils/generate_csv.py new file mode 100644 index 0000000000000000000000000000000000000000..f61674eafd916b7c11f68b115cf3c21249dc4948 --- /dev/null +++ b/utils/generate_csv.py @@ -0,0 +1,54 @@ +import os +import csv +import random + +def generate_csv(image_folder, mask_folder, output_csv): + # List all image files in the folder + img_files = [f for f in os.listdir(image_folder) if f.endswith('.png')] + + # Ensure reproducibility by setting a random seed + random.seed(42) + random.shuffle(img_files) + + # Split the list into 70% training and 30% testing + split_index = int(len(img_files) * 0.7) + train_files = img_files[:split_index] + test_files = img_files[split_index:] + + # Open the CSV file for writing + with open(output_csv, 'w', newline='') as csvfile: + fieldnames = ['imgs', 'labels', 'split', 'fold'] + writer = csv.DictWriter(csvfile, fieldnames=fieldnames) + + writer.writeheader() # Write the CSV header + + # Helper function to write rows to the CSV + def write_rows(files, split_type): + for img_filename in files: + base_filename = os.path.splitext(img_filename)[0] # Get the base filename without extension + mask_filename = os.path.join(mask_folder, f"{base_filename}_mask.png") # Construct mask filename + img_filepath = os.path.join(image_folder, img_filename) # Full path to the image file + + # Ensure the mask file exists before writing to CSV + if os.path.exists(mask_filename): + writer.writerow({ + 'imgs': img_filepath, + 'labels': mask_filename, + 'split': split_type, + 'fold': 0 + }) + else: + print(f"Warning: Mask file not found for image {img_filename}, skipping.") + + # Write training data + write_rows(train_files, 'training') + + # Write testing data + write_rows(test_files, 'test') + +# Example usage +image_folder = '/home/abdelrahman.elsayed/ROSE/images' # Folder with image files +mask_folder = '/home/abdelrahman.elsayed/ROSE/masks' # Folder with mask files +output_csv = '/home/abdelrahman.elsayed/ROSE/data_split.csv' # Output CSV file path + +generate_csv(image_folder, mask_folder, output_csv) diff --git a/utils/prepare_data.py b/utils/prepare_data.py new file mode 100644 index 0000000000000000000000000000000000000000..4c8b1fe4aeadb5623bff3aadabf41fa47e826c6a --- /dev/null +++ b/utils/prepare_data.py @@ -0,0 +1,29 @@ +import os + +def append_mask_to_labels(directory): + # Loop through all files in the directory + for filename in os.listdir(directory): + # Get the full path of the current file + file_path = os.path.join(directory, filename) + + # Ensure it's a file (not a subdirectory) + if os.path.isfile(file_path): + # Split the filename and its extension + file_name, file_extension = os.path.splitext(filename) + + # Create the new filename by appending "_mask" + new_filename = f"{file_name}_mask{file_extension}" + + # Get the full path for the new filename + new_file_path = os.path.join(directory, new_filename) + + # Rename the file + os.rename(file_path, new_file_path) + print(f"Renamed: {filename} -> {new_filename}") + +if __name__ == "__main__": + # Replace with the path to your labels directory + labels_directory = "/home/abdelrahman.elsayed/ROSE/masks" + + # Call the function to append "_mask" to each label + append_mask_to_labels(labels_directory)