Giter Site home page Giter Site logo

A standalone sample about calc HOT 8 CLOSED

rpng avatar rpng commented on June 12, 2024
A standalone sample

from calc.

Comments (8)

nmerrill67 avatar nmerrill67 commented on June 12, 2024

from calc.

mpkuse avatar mpkuse commented on June 12, 2024

So, I downloaded your caffe models in DeepLCD/calc_model. Also untared your CampusLoopDataset.

Finally running,

python main.py test -m ../DeepLCD/calc_model/ -d test_data/CampusLoopDataset/

Traceback (most recent call last):
  File "main.py", line 157, in <module>
    plot(net_model_path=args.model_path, data_path=args.data_path, num_include=args.num_include, title=args.title, resize_net=args.rz_net, alexnet_proto_path=args.alex_proto, alexnet_weights=args.alex_weights)
  File "/home/mpkuse/Downloads/calc/TrainAndTest/testNet.py", line 326, in plot
    precisions, recalls, precision_alex, recall_alex, precision_hog, recall_hog, precision_dbow, recall_dbow = get_prec_recall(net_def_path, net_model_path, data_path, num_include, title, resize_net, alexnet_proto_path, alexnet_weights)
  File "/home/mpkuse/Downloads/calc/TrainAndTest/testNet.py", line 131, in get_prec_recall
    nets.append(caffe.Net(net_def_path,1,weights=m_path))
RuntimeError: Could not open file proto/deploy.prototxt

I can see it cannot find the prototxt file, Am I specifying the arguments wrongly? What is the correct way?

from calc.

nmerrill67 avatar nmerrill67 commented on June 12, 2024

from calc.

mpkuse avatar mpkuse commented on June 12, 2024

Ok! Thanks got it working !

from calc.

mpkuse avatar mpkuse commented on June 12, 2024

I am trying to get the descriptors for my images. I am trying to do something similar to this:

def view_forward_pass(im1_fl, im2_fl, net_def_path='proto/deploy.prototxt', net_model_path='model/Ours.caffemodel'):
ie. your function view_forward_pass().

Can you confirm that net.blobs['descriptor'].data gets me the descriptor for my image using your proposed auto-encoder model?

Can you also provide me the caffemodel you used for Alexnet (alexnet-proto and alexnet-model)?
Was this model used? https://github.com/BVLC/caffe/tree/master/models/bvlc_alexnet

from calc.

nmerrill67 avatar nmerrill67 commented on June 12, 2024

from calc.

nmerrill67 avatar nmerrill67 commented on June 12, 2024

I forgot to answer the last part of your question sorry. Yes that model from BVLC is the model we used for AlexNet in the paper.

from calc.

mpkuse avatar mpkuse commented on June 12, 2024

Ok. Thanks for all your replies. I got your code working as I desired.

from calc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.