Comments (7)
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.
I re-extract the data and the error disappeared, but it abrupt crash when training:
Segmentation fault (core dumped)
from deepnetsforeo.
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.
@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.
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_idsand
test_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.
@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.
@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)
- prediction on my image HOT 1
- Typos to load Potsdam data HOT 3
- Problem to get the dataset HOT 1
- Low accuracy during training HOT 2
- Operation on cpu HOT 5
- PyTorch 4.0 compliance
- Data set present in the link does not match the code HOT 1
- Value Error: Axes don't match array! HOT 1
- problems with SGDSolver HOT 1
- Using images with with nodata pixels HOT 4
- Error with train: invalid index of a 0-dim tensor
- nDSM DATA of Vaihingen Dataset HOT 3
- accuracy of your SegNet model HOT 4
- Initialization of V-fusenet HOT 2
- downloading dataset HOT 5
- code for the fusion of DSM data and RGB image HOT 1
- Datasets HOT 1
- DSM, NDSM and NDVI Part HOT 1
- error during model training HOT 7
- the use of another dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepnetsforeo.