[GSoC] Added TF and PyTorch segmentation conversion cases#17801
[GSoC] Added TF and PyTorch segmentation conversion cases#17801alalek merged 3 commits intoopencv:masterfrom
Conversation
|
It's not clear for me what this PR proposes. Can you summarize in the description? |
| MODEL_PATH_ROOT = os.path.join(DNN_LIB.lower() + "_conversion", "{}/models") | ||
|
|
||
|
|
||
| def make_dir(dir_to_create): |
There was a problem hiding this comment.
you can replace the function with os.path.makedirs(dir_to_create, exist_ok=True)
| plt.title(experiment_name, fontsize=15) | ||
| plt.legend() | ||
| plt.savefig(experiment_name.replace(" ", "_") + ".png", bbox_inches="tight") | ||
| pass |
There was a problem hiding this comment.
pass is redundant here.
| pass | ||
|
|
||
|
|
||
| # https://github.com/opencv/opencv/blob/9ba5581d176baf7c8fceb12b4dcef6c49c7a087d/modules/dnn/test/imagenet_cls_test_alexnet.py |
There was a problem hiding this comment.
I propose to replace the URL to relative file name in OpenCV repository. The link points to particular commit, but the file changes time to time.
|
@LupusSanctus Friendly reminder. |
|
@LupusSanctus the first part has been merged. Please re-base the PR and fix CI-reported issues. |
261f765 to
b07fdce
Compare
[GSoC] Added TF and PyTorch segmentation conversion cases * WIP: Added conversion of segmentation models * Added tutorial mds * remove unused
|
@LupusSanctus could you please provide the images linked to the tutorials and also the full self-contained segmentation code, especially the implementations of |
GSoC project: "Write a tutorial about training a network in TF or PyTorch and then running it in OpenCV"
Part 1. Classification case
Part 2. Segmentation case:
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.
force_builders_only=Docs