Giter Site home page Giter Site logo

Comments (6)

rangerToby avatar rangerToby commented on May 17, 2024

hey, DebojitBiswas. I meet the same question, have you figure it out?

from mobilenet-ssd.

hammadullah125 avatar hammadullah125 commented on May 17, 2024

Hey. Did you solve this problem? I'm also getting the same error and couldn't find any solution.

from mobilenet-ssd.

DebojitBiswas avatar DebojitBiswas commented on May 17, 2024

Hi,
I have solved the problem. That was long time ago. I dont remember exactly. But I will try to help you. Please let me know your steps you performed and which step you are getting error.

from mobilenet-ssd.

hammadullah125 avatar hammadullah125 commented on May 17, 2024

@DebojitBiswas I have to use SSD framework to train the network on my own image dataset. For that I looked in the internet how things work and how to train a SSD network. I found out that I need some files like "solver.prototxt" with the net defined inside solver "train.prototxt" and "test.prototxt" and a "labelmap.prototxt". There is also a "train_lmdb" and "test_lmdb" files needed. For generating lmdb files I did this
$ GLOG_logtostderr = 1 / Users / screamer / caffe / build / tools / convert_imageset --resize_height = 256 --resize_width = 256 --shuffle / /Users/screamer/Desktop/Test/train.txt / Users / screamer / Desktop / Test / train_lmdb

where the "train.txt" file contains the path to the images and class number (format like this)
/export/users/hull/Downloads/cars_test/00001.jpg 0
/export/users/hull/Downloads/cars_test/00002.jpg 0
/export/users/hull/Downloads/cars_test/00003.jpg 0

In my case, I have just one class.

After doing all these necessary steps, I put the network on training
/Path/To/caffe train --solver /Path/To/solver.prototxt

But here I encounter a problem which is "Error parsing text-format caffe.NetParameter: 16:18: Message type "caffe.TransformationParameter" has no field named "resize_param".

I want to know that if I'm doing all this right? Where I'm making a mess? I would really be thankful if you help me out in explaining this.

from mobilenet-ssd.

DebojitBiswas avatar DebojitBiswas commented on May 17, 2024

@hammadullah125

  1. From SSD dataset you need only "SSD.caffemodel" that s all.
  2. Then you need to create a symbolic link (if you are putting your full dataset at the same directory, you dont need to create this then) to the current MobileNet directory.
  3. You need to create a label map file which is easy. I would suggest use atleast 2 classes instead of 1. Because of there is a background you will have class 0,1 and 2.
  4. you need to edit no.of classes at gen_model.sh, that file will edit MobileNetSSD_deploy.prototxt, MobileNetSSD_test.prototxt and MobileNetSSD_train.prototxt in the example folder.
    5.Finally run train.sh this file contains path of SSD.caffemodel file and solver_train.prototxt
    As far I remember I was getting "resize_param" because of I did not change the class number at step 4. Let me know what did you get.

from mobilenet-ssd.

hammadullah125 avatar hammadullah125 commented on May 17, 2024

I’m also getting the same error
Message type “caffe.TransformationParameter” has no field named “resize_param”.
According to a github friend,
"there is no such functionality in caffe framework. To make it work, you would need to first get original caffe, and second merge it with https://github.com/ducha-aiki/caffe/tree/more-transforms
This process is non-trivial, so I don`t recommend you to do it. Instead, better use newer frameworks like pytorch or keras".

from mobilenet-ssd.

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.