Closed fatima-ekhtiari closed 1 year ago
and this error is for running test.py file
model has 32649670 parameters in total Testing on CAMO
Parameters...
datapath : /content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO
mode : test
label_dir : Scribble
/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py:563: UserWarning: This DataLoader will create 8 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary.
warnings.warn(_create_warningmsg(
will save to ./map/trained
[ WARN:0@6.794] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00012.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.801] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00018.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.804] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00061.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.809] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00064.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.813] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00071.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.814] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00079.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.817] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00087.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.825] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00090.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.825] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00088.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.827] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00102.jpg'): can't open/read file: check file path/integrity
[ WARN:0@6.828] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00098.jpg'): can't open/read file: check file path/integrity
Traceback (most recent call last):
[ WARN:0@6.830] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage00112.jpg'): can't open/read file: check file path/integrity
File "/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/test.py", line 185, in
Hello again.. some more questions make for me.. sorry bothering you 1-next question, where exactly I should locate the cod_dataset.json and cod_method.json files ? should they be located in CodDataset folder? or i do not know exactly how to locate in PySODEvalToolkit folder according to github description in test and evaluate part.
2-and about your dataset Scribble-COD , I put it in CodDataset folder but when run the train.py code or test.py I get error, i had changed Scribble-COD name to Scribble , please answer me where the exactly i should locate it. 2_1 - about training dataset and testing data set i built 2 folders in CodDataset folder and named train and test folder .is it right?
3- and in addition i clone this github PySODEvalToolkit in PySODEvalToolkit folder in my code.
4- about this line of code in test.py line 167 : cfg = dataset.Config(datapath='000', mode='test') should datapath change or it should not change and be 000 , if i must change it which folder i locate here?
and i remove this package cause It didnot work .. my python version is 10. and run in colab. due to gpu i must run there 5-there is skimage==0.0 package in requirements.txt that when i try to install i get this error : Collecting skimage==0.0 Using cached skimage-0.0.tar.gz (757 bytes) error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
6- one of the path of test and evaluation image that couldnot find and gets error. which location should be the test.txt ? I got error that test.txt should be in 3 folders of test , CAMo and chameleon , cod10k. i put 3 txt files in there folders. but then get error.
error: /content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage_00012.jpg /content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/GT/CAMO/Image/camourflage00012.png [ WARN:0@5.463] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CAMO/Image/CAMO/Image/camourflage_00012.jpg'): can't open/read file: check file path/integrity
Should the python version be a special version?
I look forward to your reply. thanks man
this is my run on train.py . It works fine up to epoch 10 but after epoch 10 finished couldnot find test and validation images and it is because of location of json files and datasets and txt file and i tgets this error , please help me to make it correct :
scribblecod| 2023-09-25 12:00:32.291901 | eta:0:25:44 | step:2265/9/15 | lr=0.000808 | loss=3.864550 | loss2=1.445755 | loss3=1.210846 | loss4=1.210285 | loss5=1.204647
scribblecod| 2023-09-25 12:00:40.488145 | eta:0:22:27 | step:2275/9/15 | lr=0.000802 | loss=3.586289 | loss2=1.325549 | loss3=1.129965 | loss4=1.130603 | loss5=1.127825
scribblecod| 2023-09-25 12:00:52.612554 | eta:0:23:33 | step:2278/10/15 | lr=0.000801 | loss=3.738836 | loss2=1.393488 | loss3=1.174757 | loss4=1.170793 | loss5=1.167579
scribblecod| 2023-09-25 12:01:09.908376 | eta:0:37:42 | step:2288/10/15 | lr=0.000795 | loss=3.553124 | loss2=1.267397 | loss3=1.140137 | loss4=1.145549 | loss5=1.140448
scribblecod| 2023-09-25 12:01:21.237147 | eta:0:31:10 | step:2298/10/15 | lr=0.000790 | loss=3.367981 | loss2=1.239898 | loss3=1.059506 | loss4=1.071851 | loss5=1.055904
scribblecod| 2023-09-25 12:01:33.168586 | eta:0:29:47 | step:2308/10/15 | lr=0.000785 | loss=3.684548 | loss2=1.324306 | loss3=1.176680 | loss4=1.183015 | loss5=1.178180
scribblecod| 2023-09-25 12:01:42.244994 | eta:0:24:53 | step:2318/10/15 | lr=0.000780 | loss=3.848826 | loss2=1.469091 | loss3=1.188097 | loss4=1.193245 | loss5=1.184683
scribblecod| 2023-09-25 12:01:55.903928 | eta:0:29:06 | step:2328/10/15 | lr=0.000774 | loss=3.503684 | loss2=1.302825 | loss3=1.100023 | loss4=1.099406 | loss5=1.100912
scribblecod| 2023-09-25 12:02:06.530961 | eta:0:27:32 | step:2338/10/15 | lr=0.000769 | loss=3.730613 | loss2=1.371092 | loss3=1.180467 | loss4=1.177685 | loss5=1.171985
scribblecod| 2023-09-25 12:02:19.686049 | eta:0:28:40 | step:2348/10/15 | lr=0.000764 | loss=3.551367 | loss2=1.311336 | loss3=1.115831 | loss4=1.124710 | loss5=1.117821
scribblecod| 2023-09-25 12:02:31.673756 | eta:0:29:31 | step:2358/10/15 | lr=0.000759 | loss=3.704466 | loss2=1.384706 | loss3=1.156423 | loss4=1.160876 | loss5=1.157112
scribblecod| 2023-09-25 12:02:42.456053 | eta:0:26:30 | step:2368/10/15 | lr=0.000753 | loss=3.568032 | loss2=1.293321 | loss3=1.135072 | loss4=1.136898 | loss5=1.138805
scribblecod| 2023-09-25 12:02:54.372180 | eta:0:28:19 | step:2378/10/15 | lr=0.000748 | loss=3.734311 | loss2=1.352718 | loss3=1.194389 | loss4=1.186527 | loss5=1.194148
scribblecod| 2023-09-25 12:03:04.595091 | eta:0:25:01 | step:2388/10/15 | lr=0.000743 | loss=3.671160 | loss2=1.347826 | loss3=1.155481 | loss4=1.170402 | loss5=1.154952
scribblecod| 2023-09-25 12:03:16.440994 | eta:0:27:13 | step:2398/10/15 | lr=0.000738 | loss=3.551370 | loss2=1.288312 | loss3=1.128820 | loss4=1.131838 | loss5=1.131773
scribblecod| 2023-09-25 12:03:26.718988 | eta:0:24:48 | step:2408/10/15 | lr=0.000732 | loss=3.801080 | loss2=1.425219 | loss3=1.184817 | loss4=1.189666 | loss5=1.189600
scribblecod| 2023-09-25 12:03:38.533901 | eta:0:26:26 | step:2418/10/15 | lr=0.000727 | loss=3.259324 | loss2=1.203174 | loss3=1.025402 | loss4=1.025489 | loss5=1.032756
scribblecod| 2023-09-25 12:03:47.559819 | eta:0:22:32 | step:2428/10/15 | lr=0.000722 | loss=3.749906 | loss2=1.410414 | loss3=1.173078 | loss4=1.170260 | loss5=1.165015
scribblecod| 2023-09-25 12:04:00.176880 | eta:0:26:44 | step:2438/10/15 | lr=0.000716 | loss=3.501965 | loss2=1.283278 | loss3=1.103915 | loss4=1.116606 | loss5=1.103760
scribblecod| 2023-09-25 12:04:09.218809 | eta:0:22:30 | step:2448/10/15 | lr=0.000711 | loss=3.474904 | loss2=1.246585 | loss3=1.112330 | loss4=1.113712 | loss5=1.114830
scribblecod| 2023-09-25 12:04:22.688983 | eta:0:27:28 | step:2458/10/15 | lr=0.000706 | loss=3.950671 | loss2=1.480280 | loss3=1.234701 | loss4=1.235630 | loss5=1.233071
scribblecod| 2023-09-25 12:04:34.139596 | eta:0:26:27 | step:2468/10/15 | lr=0.000701 | loss=3.608648 | loss2=1.345256 | loss3=1.131746 | loss4=1.132879 | loss5=1.128543
scribblecod| 2023-09-25 12:04:46.889101 | eta:0:26:28 | step:2478/10/15 | lr=0.000695 | loss=3.687972 | loss2=1.339289 | loss3=1.171476 | loss4=1.180963 | loss5=1.167638
scribblecod| 2023-09-25 12:04:57.616131 | eta:0:24:50 | step:2488/10/15 | lr=0.000690 | loss=3.493771 | loss2=1.254223 | loss3=1.119807 | loss4=1.116067 | loss5=1.121193
scribblecod| 2023-09-25 12:05:08.130935 | eta:0:22:51 | step:2498/10/15 | lr=0.000685 | loss=3.590759 | loss2=1.316348 | loss3=1.131706 | loss4=1.141794 | loss5=1.135807
scribblecod| 2023-09-25 12:05:18.541748 | eta:0:22:58 | step:2508/10/15 | lr=0.000680 | loss=3.580940 | loss2=1.304208 | loss3=1.127984 | loss4=1.155964 | loss5=1.126299
scribblecod| 2023-09-25 12:05:29.113576 | eta:0:21:48 | step:2518/10/15 | lr=0.000674 | loss=3.818935 | loss2=1.408033 | loss3=1.209014 | loss4=1.205085 | loss5=1.198923
scribblecod| 2023-09-25 12:05:37.335306 | eta:0:18:52 | step:2528/10/15 | lr=0.000669 | loss=3.591303 | loss2=1.295186 | loss3=1.143345 | loss4=1.151094 | loss5=1.145135
[ WARN:0@3150.282] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('/content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CHAMELEON/Image/CAMO/Image/camourflage00018.jpg'): can't open/read file: check file path/integrity
[ WARN:0@3150.284] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CHAMELEON/Image/CAMO/Image/camourflage00061.jpg'): can't open/read file: check file path/integrity
[ WARN:0@3150.284] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CHAMELEON/Image/CAMO/Image/camourflage00012.jpg'): can't open/read file: check file path/integrity
[ WARN:0@3150.292] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CHAMELEON/Image/CAMO/Image/camourflage00087.jpg'): can't open/read file: check file path/integrity
[ WARN:0@3150.293] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/CHAMELEON/Image/CAMO/Image/camourflage00071.jpg'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "/content/drive/MyDrive/camouflaged/project1/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/train.py", line 176, in
hello again, is it possible for you to answer my questions?
hello first of all, I admire your perfect idea. I have tried to get run this code, but I got troubled by training. when tried to run training dataset , the code worked. but when epochs arrived to evaluation part it stopped and did not work. the problem is to build configuration of test data. i have problem how to make directories of dataset and paths of them. please help me soon .
this is one of the error : !python train.py
Parameters... datapath : /content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset savepath : ./out/trained/ mode : train batch : 16 lr : 0.001 verbose : 1 momen : 0.9 decay : 0.0005 epoch : 1 label_dir : Scribble /usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py:563: UserWarning: This DataLoader will create 8 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary. warnings.warn(_create_warning_msg(
Parameters... datapath : /content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test mode : test label_dir : Scribble /usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py:563: UserWarning: This DataLoader will create 4 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary. warnings.warn(_create_warning_msg( initialize net ****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00012.jpg **/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage_00012.png ****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00018.jpg **/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage00018.png [ WARN:0@4.050] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage00012.jpg'): can't open/read file: check file path/integrity [ WARN:0@4.053] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00018.jpg'): can't open/read file: check file path/integrity ****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00061.jpg **/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage_00061.png ****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00064.jpg **/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage00064.png [ WARN:0@4.061] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage00061.jpg'): can't open/read file: check file path/integrity [ WARN:0@4.063] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00064.jpg'): can't open/read file: check file path/integrity ****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00079.jpg **/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage00079.png [ WARN:0@4.068] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00079.jpg'): can't open/read file: check file path/integrity ****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00071.jpg **/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage00071.png [ WARN:0@4.070] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00071.jpg'): can't open/read file: check file path/integrity Traceback (most recent call last): File "/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/train.py", line 180, in
****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00090.jpg
**/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage00090.png
[ WARN:0@4.072] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00090.jpg'): can't open/read file: check file path/integrity
train(dataset, Net, cfg, tm, start_from=0)
File "/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/train.py", line 123, in train
****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00087.jpg
**/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage00087.png
[ WARN:0@4.076] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00087.jpg'): can't open/read file: check file path/integrity
mae = validate_multiloader(net, val_loaders)
File "/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/train.py", line 77, in validate_multiloader
mae = validate(model, v)
File "/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/train.py", line 61, in validate
for image, mask, shape, name in val_loader:
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 681, in next
data = self._next_data()
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 1376, in _next_data
return self._process_data(data)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 1402, in _process_data
data.reraise()
File "/usr/local/lib/python3.10/dist-packages/torch/_utils.py", line 461, in reraise
raise exception
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/data/dataset.py", line 108, in getitem
image = cv2.imread(imagepath).astype(np.float32)[:,:,::-1]
AttributeError: 'NoneType' object has no attribute 'astype'
****/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00088.jpg **/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/GT/CAMO/Image/camourflage00088.png [ WARN:0@4.083] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread('/content/drive/MyDrive/camouflaged/scribble/Weakly-Supervised-Camouflaged-Object-Detection-with-Scribble-Annotations/CodDataset/test/Image/CAMO/Image/camourflage_00088.jpg'): can't open/read file: check file path/integrity