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

Unable to load may MyModel.dnn in C# #2204

Closed
aminullah6264 opened this issue Aug 8, 2017 · 4 comments
Closed

Unable to load may MyModel.dnn in C# #2204

aminullah6264 opened this issue Aug 8, 2017 · 4 comments
Assignees

Comments

@aminullah6264
Copy link

i have train my object detection model on FastRCNN using python and save it using save_model("MyModel.dnn").
Now i try to wright script to evaluate it in C#. it throw an exception on following encircle line.
that Error: Sequence contains more than one element.
please help me to solve this problem problem.
This is my code for loading model, i have follow the steps, which is given in CNTK examples

1

@pkranen
Copy link
Member

pkranen commented Aug 8, 2017

Fast R-CNN requires two inputs (hence "Sequence contains more than one element"), the first is the image and the second are the ROI proposals (see this tutorial for more details). For evaluation in Python see evaluate_fast_rcnn() method in A2_RunWithPyModel.py:

    input_map = {
        model.arguments[0]: test_minibatch_source[features_stream_name],
        model.arguments[1]: test_minibatch_source[roi_stream_name],
    }

In C# you would need to create the ROI proposals yourself. We do not have a C# implementation.

@pkranen pkranen self-assigned this Aug 8, 2017
@aminullah6264
Copy link
Author

Dear @pkranen
i don't have ROIs for Test images.
i train my model on images of 10 videos
now i want to test it for more videos in which i don't have ROIs
i want that model should predict ROIs for me

@pkranen
Copy link
Member

pkranen commented Aug 8, 2017

The model does not predict ROIs, it requires ROIs as an input and predicts whether and which object is in the ROI. You can try Faster R-CNN which has a region proposal network and does not require ROIs as an input. There will be a tutorial added on Faster R-CNN in the coming weeks, for now please use the Readme file in the above folder.

@aminullah6264
Copy link
Author

Dear @pkranen
can i train FasterRCNN to detect ROIs using the following setups given in your Examples.

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