Closed manbp closed 5 years ago
This is just an identifier I used to keep track of experiments. Any value should work.
Thank you so much for the reply. One more question I want to ask. In the dataset directory If i provide only the .jpg file of PASCAL VOC 2012 data, will it work? Actually I am getting an error like this:
Traceback (most recent call last):
File "C:/Users/hp/PycharmProjects/new_for_3.5/Adversarial-Semisupervised-Semantic-Segmentation-master/Adversarial-Semisupervised-Semantic-Segmentation-master/train.py", line 515, in
Please help me regarding this.
Using .jpg files should work (look at https://github.com/ms-sharma/Adversarial-Semisupervised-Semantic-Segmentation/blob/master/datasets/pascalvoc.py#L52 for image loading).
Try to check if the dataset is being loaded correctly. I'll start by looking at https://github.com/ms-sharma/Adversarial-Semisupervised-Semantic-Segmentation/blob/master/train.py#L448.
I have dataset folder as shown in the screenshot https://gofile.io/?c=0WIEc5 . I need to provide the directories containing img (Images) and cls (GT Segmentation) folder to the code. So I tried the following code line:
parser.add_argument("--dataset_dir", default='C:\Users\hp\Desktop\VOCtrainval_11-May-2012\VOCdevkit\VOC2012\JPEGImages', type=str,
help="A directory containing img (Images) and cls (GT Segmentation) folder")
But it showing the error as mentioned earlier. Please help.
--dataset_dir
should have two folders, img
and cls
, with Image files and Segmentation files respectively.
I have modified the dataset folder . Now it contains only two folders, img and cls, with Image files and Segmentation files respectively as shown in the screenshot https://gofile.io/?c=7ROT5T. And tried the following code:
parser.add_argument("--dataset_dir", default='C:/Users/hp/Desktop/VOCtrainval_11-May-2012/VOCdevkit/VOC2012', help="A directory containing img (Images) and cls (GT Segmentation) folder")
but I am getting the same error. Please help.
I won't be able to offer more help than this without having access to debug code at your end.
I would suggest that you understand how the data loading works in the code and see what is going wrong. As I mentioned before, this is handled in the PascalVOC
class located here- https://github.com/ms-sharma/Adversarial-Semisupervised-Semantic-Segmentation/blob/master/datasets/pascalvoc.py
.
I am closing this issue for now.
I am trying to run the train file. In the code there is a line,-
parser.add_argument("prefix", help="Prefix to identify current experiment")
What should be the argument "prefix", we need to provide?