-
Notifications
You must be signed in to change notification settings - Fork 97
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 visulization the result,if there is a tool can do it ? #168
Comments
I hope this help:
It is best to execute under the python compiler. If you want to display one by one, please set a breakpoint in the for loop. And now you get a submission.json.Can you tell me how big is your training set and val set?And how many epochs have you trained? Is there a big difference between the results of the cross-validation in the training process and the results in the evaluation? |
@newcoder0531 wow!!!,thank you very much !!!!! After i complete it , i'll answer your question, just wait. |
@newcoder0531 |
@sanersbug |
@newcoder0531 OK ,thank you . My computer system is Linux (Ubuntu 16.04 CUDA8.0) |
@newcoder0531 Another question , do you know how to train with own data? I have make the label which are 'tif' files, but i don't now how to produce the 'annotation.json' file, if there is any tools to do this ? thanks a lot! |
@sanersbug Sorry,I don't have experience in this area.I think it's hard for you to complete the annotation yourself. |
@newcoder0531 thank you very much! |
@sanersbug This project supports image (png) labels but you are welcome to change the loaders to suit your needs. It should be modified here: |
@jakubczakon OK,Thank you, I will try it! |
@jakubczakon Sorry to disturb again , i have tried to train with my own data , but it's too hard for me . |
@animeshsahu80 looking at this issue pandas-dev/pandas#24839 it may be due to numpy/pandas version. |
also just to check whether code is working on my machine i just ran 1 epoch, will there be any kind of segmentation after running predection? |
Which operating system are you using? And I don't think there will be any reasonable predictions after 1 epoch. |
ubuntu 16.04 |
That is unexpected as I am working on this system and it runs just fine. img = img.DO_SOMETHING() to img = img.copy().DO_SOMETHING() Can you point to the exact place in the code where it fails? |
`with open('E:/torch/open-solution-mapping-challenge/tmp/prediction.json','r') as f: testimages_dir='E:/torch/open-solution-mapping-challenge/data/test_images' for image_id in testimages_list: i am using this code mentioned above , |
Instead of img.flags.writebale=True can you try this img = img.copy()
img[:,:,0][mask]=255 or this img_copy = img.copy()
img_copy[:,:,0][mask]=255 |
Also what is |
Thanks!! |
I think so, basically, if your mAP is still at zero during training I wouldn't expect anything else than emty predictions. |
Hi, |
Hi @lunaalvarez, For test images (and any other folders), it is prepared in a following way: python main.py predict_on_dir \
--pipeline_name unet_tta_scoring_model \
--chunk_size 1000 \
--dir_path path/to/inference_directory \
--prediction_path path/to/predictions.json We have this I hope this helps! |
Ooops, quite obvious really. Dont know how i missed it. Thanks for the quick reply :) |
Hi, @jakubczakon .
And follow the code above to visualization, but I got weird mask pics. It seems this learned something strange, these masks don't belong to the original picture. |
It seems like some image indexing in the prediction visualization is wrong -> it clearly learned to find them. Did you run the exploration notebook from the repo to create it? -> Go to notebook I just want to make sure that we are on the same page with what is not working :) |
Thank you, @jakubczakon . The reason I got this error is the default prediction dataset is |
Understood. |
@jakubczakon It worked, thank you. |
the result is a submission.json file , how to visualization it ?
The text was updated successfully, but these errors were encountered: