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
@LogWell found a solution how to prepare DATASETS. You can use following files structure: #38
Comments
hi friends. |
excuse me. who can tell me how run the following code? for i = 1:length(list); end` |
can you tell me a python equivalent of the above code logwell_script.m . I dont have matlab license with me. |
I'm sorry, I don't use it on Windows, but the code should be almost the same @lemon1220 I don't know how to implement it, just use it @mukundhan3 The author may not be able to receive information, or ask friends around you. |
I write a python script to prepare the data, maybe you want to try it |
@qzane Can you explain how to run this script? an example command to run? I tried but failed. I am trying like this python datasets/CIHP/images CIHP but can't run. |
@MuhammadAsadJaved try |
@qzane Yes sir you are right. CIHP2 generates 3 folders edges, images and list. Do I only need this information for generate segmented image? Note: The edges folder contains only empty black images. |
Yes, edges are for evaluation only which you don't need but has to be there |
@qzane Thank you very much sir. So nice of you. Stay blessed. |
@qzane i generated list and edges for existing images in the dataset folder of this repo using your script. then i run python test_pgn.py |
@MuhammadAsadJaved |
I have sent these pictures to your personal email address sir.
…On Fri, Dec 6, 2019 at 3:37 AM qzane ***@***.***> wrote:
Can you send me these images? I can try that on my computer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38?email_source=notifications&email_token=AG4GR5EOFPU4275XVNUKN73QXFJ6PA5CNFSM4ITM6LNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGB4EAA#issuecomment-562283008>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG4GR5H54FVMAYXILJQL7W3QXFJ6PANCNFSM4ITM6LNA>
.
|
In January, 2020, the script is named |
@lemon1220 Also, doesn't this approach not make sense? The whole point of their training the PGN network(s) is so they can segment and label everything with the neural network. This script dumbly uses old computer vision techniques like gradients. I think there's a better way to do this. Will update when I find it |
@mukundhan3 : You can use |
@MuhammadAsadJaved I know it's a bit late to comment this, but I had the same problem like this. I hope this will help you. |
@qzane Thank you for your python script. But this only generates the edges file and the respective blank(black) images. Do you have a python script to generate labels as well? |
@gayalkuruppu I don't think you need labels to get the correct output. I created a folder with custom images, ran the python script that was linked to in a previous comment (https://gist.github.com/qzane/4d07b7551914f97f2bf8b9c79138ab14 and I saved it as prepare_dataset.py) with python prepare_dataset.py custom_dataset/CIHP/images CIHP and it created a new folder within datasets/ called CIHP (it'll be named whatever you use as the last argument in the previous python command). The new folder has the structure
and then I was able to run |
If anyone needs it I have a working example of the model here : https://colab.research.google.com/drive/15uGzI5adMsZ7mIfVsr3Ruda25JswraPU?usp=sharing |
Sorry to bother you now, I just tried to run this script, but the resulting edges are full black images and not producing the correct edge images. How to solve this please? Thank you~ |
@LogWell found a solution how to prepare DATASETS. You can use following files structure:
where
datasets/CIHP/images/0002190.png - it's a source image
datasets/CIHP/list/img_list.txt contain following data:
0002190.png
and datasets/CIHP/images/tool/logwell_script.m - it's a MATLAB script for prepare edges and labels:
Just run this script using command like:
/opt/MATLAB/R2018b/bin/matlab -nodisplay -nojvm -nosplash -nodesktop -r "try, run('tool/logwell_script.m'), catch, exit(1), end, exit(0);"
and after that you can run
python test_pgn.py
for get segmented images.
Originally posted by @rcrvano in #26 (comment)
The text was updated successfully, but these errors were encountered: