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

How to visualize with result json file? #20

Closed
seokhyeonSong opened this issue Aug 7, 2019 · 15 comments
Closed

How to visualize with result json file? #20

seokhyeonSong opened this issue Aug 7, 2019 · 15 comments

Comments

@seokhyeonSong
Copy link

Hi. Thanks for sharing such a nice codes.

I'm a student who studies CV and I read it from paperswithcode.

I wanna visualize this code but I have no idea.

I understood that result json files are the information of bbox, segm etc...

But I don't know how to visualize with it....

If you've already uploaded the code to visualize, then I'm sorry that I haven't read it in details

@geyuying
Copy link
Collaborator

geyuying commented Aug 8, 2019

@seokhyeonSong Do you want to visualize annotations of DeepFashion2 or visualize predicted results from network?

@seokhyeonSong
Copy link
Author

@geyuying I found how to train and I'm training it.

what I want to know is how to visualize with predicted result from network.

If I make a pre-trained model, then what should I have to do with which py file?

sorry for just my ignorance...

@geyuying
Copy link
Collaborator

geyuying commented Aug 8, 2019

Our framework is based on Detectron, and we use Detectron/tools/infer_simple.py for visualization. You can refer to https://github.com/facebookresearch/Detectron/blob/master/GETTING_STARTED.md for details.

@seokhyeonSong
Copy link
Author

@geyuying

Thanks for your help

I'll try it!

@seokhyeonSong
Copy link
Author

@geyuying

Sorry for asking again..

I've tried sample_infer.py as python infer_simple.py --cfg ../configs/12_2017_baselines/e2e_faster_rcnn_R-50-FPN_1x.yaml --output-dir ./ --image-ext jpg --wts ../../match_rcnn/logs/deepfashion220190808T0916/mask_rcnn_deepfashion2_0005.h5 ./

but Detectron it seems to be cannot load h5 weight file..

I've got new h5 file by running match_rcnn's main.py

Is h5 file have to be transformed?

@jia0511
Copy link

jia0511 commented Aug 9, 2019 via email

@seokhyeonSong
Copy link
Author

@jia0511

run evaluation/deepfasion2_to_coco.py to get json file

you may run this code with validation dataset and train dataset

Then you may get 2 json files.

Then run match_rcnn's main.py

You have to change settings with your environment

Then training will be started

That's what I've got known...

It could be wrong

@jia0511
Copy link

jia0511 commented Aug 9, 2019 via email

@jia0511
Copy link

jia0511 commented Aug 9, 2019 via email

@seokhyeonSong
Copy link
Author

@jia0511

cuz This git's owner shares datasets to only the people who send google form

and trained model can be obtained by dataset so it will be impossible sry

@seokhyeonSong
Copy link
Author

@jia0511
you have to change

json_name ~~, image_name ~~ (row 108,109) <- the link to dataset's annos folder and image folder

json_name (row 234) <- the name of json file to create

@jia0511
Copy link

jia0511 commented Aug 9, 2019 via email

@seokhyeonSong
Copy link
Author

@jia0511

You also change num_images to the number of images train & validation has

@jia0511
Copy link

jia0511 commented Aug 9, 2019 via email

@seokhyeonSong
Copy link
Author

I found how to train with sample_infer.py

make json file with deepfashion dataset with mtcnn's main.py

and run with this code https://github.com/facebookresearch/Detectron/blob/master/GETTING_STARTED.md#training-a-model-with-detectron

but dataset have to be changed

change Detectron/detectron/datasets/dataset_catalog.py
-> add new available datasets with deepfashion train & test with image files and json files

change Detectron/configs/getting_started/config_which_you_want
-> change DATASETS with new available datasets' name which you made at dataset_catalog.py

and then run train code with https://github.com/facebookresearch/Detectron/blob/master/GETTING_STARTED.md#training-a-model-with-detectron then train will be started

I've just started train but it would be make it visualize with the weights file that made with this code and config files that provided with detectron

Thanks for great help @geyuying

This was referenced Aug 12, 2019
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

3 participants