Giter VIP home page Giter VIP logo

Comments (7)

marcdegraef avatar marcdegraef commented on August 14, 2024

from emsphinx.

bschue avatar bschue commented on August 14, 2024

Hi Marc,

Thanks for the really quick reply! I believe this set was uncompressed.. but before I say that for sure I'll gather another dataset and see if I get the same error.

I do have another series of patterns which I exported (an incredible pain storage wise) and will use your Matlab code to generate a .data file.

Let me play around with that and gather another uncompressed .ebsp dataset and report back.

Thanks, Marc!

Ben

from emsphinx.

bschue avatar bschue commented on August 14, 2024

Hey @marcdegraef

Finally got back to this issue. I have rescanned a couple datasets with uncompressed patterns. Same issue is arising with the
"vector subscript out of range" when previewing patterns.

Hopefully this isn't too complicated of a fix..

Thanks for all of your help!

Ben

Capture

from emsphinx.

jwestraadt avatar jwestraadt commented on August 14, 2024

Hi Ben,

I managed to get it working by incorporating this pull request. It looks like the height and width of the patterns is switched around in the histogram equalization code. I think the Ni example data has square patterns, so it is not an issue, but the .ebsp files typically have rectangular patterns where this becomes an issue.

I found another issue with pattern batch sizes when working with .ebsp files before I finally got it working, but will raise it as a separate issue. If I make the batch size equal to a factor of the total number of patterns, then it completes the analysis.

Johan

from emsphinx.

bschue avatar bschue commented on August 14, 2024

Hey Johan,

Thank you for the update! I'll incorporate your pull request and see how it plays with my data. I will report back with any findings.

Cheers,
Ben

from emsphinx.

bschue avatar bschue commented on August 14, 2024

Hi Ben,

I managed to get it working by incorporating this pull request. It looks like the height and width of the patterns is switched around in the histogram equalization code. I think the Ni example data has square patterns, so it is not an issue, but the .ebsp files typically have rectangular patterns where this becomes an issue.

I found another issue with pattern batch sizes when working with .ebsp files before I finally got it working, but will raise it as a separate issue. If I make the batch size equal to a factor of the total number of patterns, then it completes the analysis.

Johan

Hey Johan,

Solution worked for me but towards the end of analysis I get another error. Is this what you have seen as well?
Cheers,

EMSphInx_error_2

from emsphinx.

jwestraadt avatar jwestraadt commented on August 14, 2024

Hi Ben,

I have created another issue for this error: #13

You have 255x196 = 44100 patterns in the .ebsp file. Under "Indexing parameters" on the right, try setting the "batchsize" to say 100, which is a factor of the total number of patterns. At the moment it is set to 0, which will automatically determine the batchsize. This number might not be a factor of the total number of patterns. Some initial debugging shows that this error might be related to reading the last partial batch from the .ebsp in the following loop of the index_ebsd.cpp file.

	size_t batches = idxData.pat->numPat() / nml.batchSize;//how many batches are needed
	if(batches * nml.batchSize < idxData.pat->numPat()) ++batches;//extra batch for leftovers
	for(size_t i = 0; i < batches; i++) {//loop over batches
		const size_t start = i * nml.batchSize;//first pattern
		const size_t end = std::min(start + nml.batchSize, idxData.pat->numPat());//last pattern
		pool.schedule(std::bind(idxData.workItem, std::placeholders::_1));//queue indexing
	}

Please also make sure to output the vendor file as ".ang" and not ".ctf" as it will give another error. I have logged this as a separate issue #14. You might also find the discussions on the pattern center determination on the Oxford system useful.

from emsphinx.

Related Issues (18)

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.