-
Notifications
You must be signed in to change notification settings - Fork 45
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
Running only the saved models #8
Comments
You can use the python pyffe/forward.py
usage: forward.py [-h] [-mf MEAN_FILE] [-mp MEAN_PIXEL] [--nogpu]
[-rf ROOT_FOLDER]
deploy_file caffemodel image_list output_file
[...]
positional arguments:
deploy_file Path to the deploy file
caffemodel Path to a .caffemodel
image_list Path to an image list
output_file Name of output file Ignore mean_file and mean_pixel arguments (they are not used in deep-parking experiments).
Example: python pyffe/forward.py path/to/deploy.prototxt path/to/snapshot_iter_xxx.caffemodel images.txt predictions.npy where an example of /path/to/image1.png
/path/to/image2.png
... |
Thank you very much for the DETAILED reply.
Since I'm new to Deep Learning., I don't know much of it. |
I updated the first answer with an example. Some guides for Python: |
Can you just give the Exact command for testing the images with pretrained
model.
Also can you give me an example of image_list file.
Sorry for the trouble and wasting your time! This is my last query :))
…On Mon, Oct 8, 2018 at 6:42 PM fabiocarrara ***@***.***> wrote:
I updated the first answer with an example.
About videos, our model only works on pre-extracted image patches.
The visualization part you see on YouTube use our model and is implemented
in Java + OpenCV. Unfortunately, we were not responsible for that part, and
we do not have any code to share.
However, I think you can easily reimplement that with newer versions of
OpenCV (>= 3.3), which added the support for caffe models in the DNN module.
Some guides for Python:
-
https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_core/py_basic_ops/py_basic_ops.html#basic-ops
-
https://docs.opencv.org/3.0-beta/modules/videoio/doc/reading_and_writing_video.html
- https://www.pyimagesearch.com/2017/08/21/deep-learning-with-opencv/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhLxTZOOuKm9uySs_wrNDshKXZHkslcdks5ui08zgaJpZM4XMnxf>
.
--
Regards,
Naren Babu R
|
I ran the pyffe/forward.py
Here is the content of images.txt: here is the output of prediction.npy: I think the output is not expected. the prediction is not expected. |
Did you solve your problem @ahadafzal ? I'm also having the same issue. |
@nikola310 nope. I didn't use this later. I opted for vgg16 model. Recent published a paper also in IEEE Scopus. 🙂 |
@ahadafzal I see. I'll have to check it out then 😃 In case anyone stumbles upon this problem, since I was trying to test on the same data sets used during training, my solution was to use the appropriate patched image for each model. So if you're trying to run model trained on CNRPark, you have to use CNRPark patched images. |
Can you please tell the changes to be made in main.py to run only the trained model
The text was updated successfully, but these errors were encountered: