Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about the wider face data #2

Closed
Usernamezhx opened this issue Feb 20, 2017 · 23 comments
Closed

about the wider face data #2

Usernamezhx opened this issue Feb 20, 2017 · 23 comments

Comments

@Usernamezhx
Copy link

hi
I follow your guide to start this project. I download the data WIDER face.but when i run the command:"No dataset given" , i find that the faster_rcnn_end2end.sh scripts only support only voc and coco data. and then i try to convert the wider face data to the voc style . but i meet a new question:assert (boxes[:, 2] >= boxes[:, 0]).all() .i try all i can do ,but it does not work.

@playerkk
Copy link
Owner

The faster_rcnn_end2end.sh script does support the wider dataset. You might need to exactly follow the instructions in the readme file.

@Usernamezhx
Copy link
Author

hi playerkk
I am a fresh bird,you said the faster_rcnn_end2end.sh script does support the wider dataset,but i open the faster_rcnn_end2end.sh. it said that :
case $DATASET in
pascal_voc)
TRAIN_IMDB="voc_2007_trainval"
TEST_IMDB="voc_2007_test"
PT_DIR="pascal_voc"
ITERS=70000
;;
coco)
# This is a very long and slow training schedule
# You can probably use fewer iterations and reduce the
# time to the LR drop (set in the solver to 350,000 iterations).
TRAIN_IMDB="coco_2014_train"
TEST_IMDB="coco_2014_minival"
PT_DIR="coco"
ITERS=490000
;;
*)
echo "No dataset given"
exit
;;
esac
i have no idea .i need your help,thank you

@playerkk
Copy link
Owner

@Usernamezhx
Copy link
Author

oh my god ......i use the rbgirshick faster rcnn faster_rcnn_end2end.sh......many many many thanks.......

@Usernamezhx
Copy link
Author

i clone your project . thank you very much........ : )

@Usernamezhx
Copy link
Author

hi playerkk
I am sorry to bother you .I think i should run it first and then to analysis it.
AssertionError: Path does not exist: data/WIDER/train_face_train_annot.txt .
i think it has some problem with the file name .

image_set_file = self._name + 'face' + self._image_set + '_annot.txt'
I think it should not produce the name :train_face_train_annot.txt

I input the command: **voole@zhx:~/face-py-faster-rcnn$ ./experiments/scripts/faster_rcnn_end2end.sh 0 ZF wider **

thanks for your help
zhanghongxing

@Usernamezhx
Copy link
Author

i really really really really really need your help, if you dont have time ,i will be waiting for you.

@playerkk
Copy link
Owner

playerkk commented Feb 21, 2017

I would strongly recommend you to read the instructions carefully before running the cod. https://github.com/playerkk/face-py-faster-rcnn/blob/master/README.md

@Usernamezhx
Copy link
Author

I am sorry to bother you again ,I have read the README for several times , http://blog.csdn.net/zhanghongxing007/article/details/56479206
I write down the details, I hope you can read for several minutes, thanks for your help.

@playerkk
Copy link
Owner

You didn't do the step 4 of the section "prepare the training data".

@Usernamezhx
Copy link
Author

first of all . thank you very much. that i use the folder WIDER/WIDER_train/ to Create symlinks. after that , it said that need:
AssertionError: Selective search data not found at: /home/voole/face-py-faster-rcnn/data/WIDER/train.mat
so i down the wider_face_split.zip from the WIDER FACE NET. and then i change the name wider_face_train.mat to train.mat
after that i meet a new problem:
NotImplementedError: Please use HDF reader for matlab v7.3 files
so i have to change the scipy io to fit the v7.3 but................i cant find the loadmat function............

@playerkk playerkk reopened this Feb 22, 2017
@playerkk
Copy link
Owner

playerkk commented Feb 22, 2017

I tested the repository on another machine. I also had some errors of loading the WIDER dataset. But they are different from yours. I've updated the source files. Please update the repository by doing "git pull origin master" and re-run the program as "./experiments/scripts/faster_rcnn_end2end.sh 0 VGG16 wider"

Sorry for the inconvenience. Let me know if it works.

@Usernamezhx
Copy link
Author

Usernamezhx commented Feb 23, 2017

hi playerkk
First of all ,thanks for your reply. I am sorry to bother you again again again....but i have be here for one day.
Traceback (most recent call last): File "./tools/train_net.py", line 106, in <module> imdb, roidb = combined_roidb(args.imdb_name) File "./tools/train_net.py", line 71, in combined_roidb roidbs = [get_roidb(s) for s in imdb_names.split('+')] File "./tools/train_net.py", line 68, in get_roidb roidb = get_training_roidb(imdb) File "/home/voole/face-py-faster-rcnn/tools/../lib/fast_rcnn/train.py", line 118, in get_training_roidb imdb.append_flipped_images() File "/home/voole/face-py-faster-rcnn/tools/../lib/datasets/imdb.py", line 106, in append_flipped_images boxes = self.roidb[i]['boxes'].copy() File "/home/voole/face-py-faster-rcnn/tools/../lib/datasets/imdb.py", line 67, in roidb self._roidb = self.roidb_handler() File "/home/voole/face-py-faster-rcnn/tools/../lib/datasets/face.py", line 227, in selective_search_roidb ss_roidb = self._load_selective_search_roidb(gt_roidb) File "/home/voole/face-py-faster-rcnn/tools/../lib/datasets/face.py", line 247, in _load_selective_search_roidb 'Selective search data not found at: {}'.format(filename)
AssertionError: Selective search data not found at: /home/voole/face-py-faster-rcnn/data/WIDER/wider.mat
wider.mat? it means the wider_face_train.mat?
Look forward to your reply

@playerkk
Copy link
Owner

It's weird. Since we are using RPN to generate proposals, there is no need to call the _load_selective_search_roidb function. Can you post your command to run the code?

@Usernamezhx
Copy link
Author

hi playerkk
thanks for your reply. i write down the detail at the : http://blog.csdn.net/zhanghongxing007/article/details/56479206
many thanks.

@playerkk
Copy link
Owner

Sorry, I should have mentioned only VGG16 is currently supported.

@Usernamezhx
Copy link
Author

Hi playerkk
yeah,i use the command:./experiments/scripts/faster_rcnn_end2end.sh 0 VGG16 wider. i use the VGG16 net.

@Usernamezhx
Copy link
Author

i have the same quetion .the faster rcnn use the RPN net instead of the selective_search. I called some old script for fast-rcnn ?

@playerkk
Copy link
Owner

You are training a faster r-cnn. Do you have errors right now?

@Usernamezhx
Copy link
Author

when i input the conmmand: './experiments/scripts/faster_rcnn_end2end.sh 0 VGG16 wider'
it still point that : ' Selective search data not found at: /home/voole/face-py-faster-rcnn/data/WIDER/wider.mat'
i am sorry to bother you.

@playerkk
Copy link
Owner

It seems case sensitive. Try vgg16 instead of VGG16. Also do "git pull origin master" to update the source files.

@playerkk
Copy link
Owner

You might also need to delete *.pkl files in the cache folder.

@Usernamezhx
Copy link
Author

Usernamezhx commented Feb 28, 2017

hi man
i have solved this question~~~,because of the easydict, my version is 1.4 .even i config the yml. but easydict did not pass the parameter to the train_net.py. so ...... the solution is to update your easydict. thank you very much very much very much .now it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants