Comments (4)
For training SSN with BSDS, we convert GT segmentation into one-hot encoding and we assume that there are maximum 50 segments in an image. See 'convert_label' function (lines 59-74) in fetch_and_transform_data.py. You would need to modify this function if you want to train with existing superpixels as GT. You may face memory issues if this one-hot encoding matrix is big.
from ssn_superpixels.
Hello,
I still meet this problem. Here is the detail:
I notice that the structure of segmentation data in BSDS500 is rather complicated (those .mat files), which contain lots of information but not useful to my study; as my concern, the only important info is the matrix of marked labels (481x321 size, with integers marking each pixel to its segmented region). So my data (also .mat files) just contain this matrix.
In order to input my ground truth correctly, here is how I modify the code:
- in function “fetch_and_transform_data” and “fetch_and_transform_patch_data”, I comment these two lines
# t = np.random.randint(0, len(gtseg_all['groundTruth'][0]))
# gtseg = gtseg_all['groundTruth'][0][t][0][0][0]
and write mine:gtseg = gtseg_all['groundTruth']
to match my data structure; - also, I followed your instruction to change the max number of segments from 50 to 120, (actually this number 50 appears in five places in whole program and they seem to refer to the same thing as this max number);
- the result is that I get stuck when it create input layer, with no error message, just stay stuck and still, after showing this line:
Outputs: [‘img’, ‘spixel_init’, ‘feat_spixel_init’, ‘label’, ‘problabel’]
now I’m thinking this problem might come from the structure of GT data, because the only thing I changed is the replacement of GT data. So could you tell me what you think about my problem and explain a bit more about how you treat the structure of GT data (‘from .mat file’) , especially the label matrix? Did I miss some very important things for the processing of GT data?
Thanks
from ssn_superpixels.
Your understanding of gt segmentations is correct. I just read label integers from mat files and convert them into one-hot encodings. It is difficult to debug without error message. You may need to debug this manually with 'pdb' stop statements 'pdb.set_trace()'.
from ssn_superpixels.
Thanks for your advice, my problem is now solved (after long time of debugging and adjusting parameters in the code, finally...)
from ssn_superpixels.
Related Issues (20)
- Aboutn
- some question of paper about training HOT 4
- where to install Caffe inside "ssn_superpixels" HOT 2
- About some custom caffe layer ? HOT 3
- input image size different for training and testing on the BSDS500 dataset?? HOT 1
- Some question about initialization of group conv layer 'concat_spixel_feat_50' HOT 3
- about Evaluation HOT 1
- Some questions on source code HOT 7
- what does the training loss curve look like HOT 5
- The implementation of pytorch version HOT 6
- I cannot understand “n*9” mentioned in the paper HOT 1
- F0630 15:37:53.939426 12256 math_functions.cu:79] Check failed: error == cudaSuccess (74 vs. 0) misaligned address *** Check failure stack trace: ***
- Why is random cropping / patching and random scaling applied continuously throughout training? HOT 1
- how to run the code??? HOT 1
- Question of the function of spix_init HOT 2
- about the label and loss HOT 2
- Superpixel border issue on BSDS500 dataset HOT 5
- Pytorch Implementation License
- custom training HOT 1
- extract the features of the superpixel area
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 ssn_superpixels.