Code Monkey home page Code Monkey logo

Comments (7)

nshaud avatar nshaud commented on June 18, 2024

Did you adjust config.py accordingly ? Maybe check using a print statement (e.g. print sample.shape) after the sample = sample[:,:,::-1] line in the create_lmdb.py script. It seems that you are feeding the create_image_lmdb() function with data that's not in the (W,H,C) format.

from deepnetsforeo.

tongyl avatar tongyl commented on June 18, 2024

I re-extract the data and the error disappeared, but it abrupt crash when training:
Segmentation fault (core dumped)

from deepnetsforeo.

nshaud avatar nshaud commented on June 18, 2024

This can happen for lots of reasons. Can you post Caffe's stack trace ? I'm starting to think that you are not creating the LMDBs right or that they are corrupted for some reason.

from deepnetsforeo.

zahidmadeel avatar zahidmadeel commented on June 18, 2024

@nshaud
Sorry to post it in the the issue thread. But I have no idea where to start. I have cloned your repo along with submodule init and submodule update successfully. I have also downloaded pretrained caffemodels that you specified on the homepage of this repo. Now, I want to use those pre-trained models to try and segment my images (satellite images of Lahore) to see if it requires further fine tuning or it would work out of the box. Can you please guide me how to use your models to segment my images?

from deepnetsforeo.

nshaud avatar nshaud commented on June 18, 2024

@zahidmadeel

Do you know how to use the Caffe framework ? If not, it might be useful to follow the tutorials to better understand what to do with the pre-trained weights.

First, you have to edit the config.py. The parameters BASE_DIR, DATASET, FOLDER_SUFFIX = '_fold1', BASE_FOLDER, DATASET, folders, train_idsandtest_ids` should be modified according to your own dataset.

Then, you can use the inference.py script to test the SegNet model using one of the pre-trained weights on one image. Please not that our models were trained on 3-bands images (RGB or IRRG) on very high resolution (<10cm/pixel).

Hope that helped. Open another issue if you have more questions.

from deepnetsforeo.

azikovskih avatar azikovskih commented on June 18, 2024

@nshaud in inference.py to deploy the model we must use 'test_segnet.prototxt' , what changes to the model should I make to make that file?
thank you in advance .

from deepnetsforeo.

nshaud avatar nshaud commented on June 18, 2024

@azikovskih test_segnet.prototxt is auto-generated by the inference.py script based on the configuration params from config.py, so you shouldn't have to edit anything manually.

from deepnetsforeo.

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.