Giter Site home page Giter Site logo

Examples of using mulitres mesh? about igneous HOT 6 OPEN

eddyod avatar eddyod commented on August 15, 2024
Examples of using mulitres mesh?

from igneous.

Comments (6)

eddyod avatar eddyod commented on August 15, 2024 1

Thanks, I'm having better luck with the unsharded process and it appears to be working!

from igneous.

william-silversmith avatar william-silversmith commented on August 15, 2024

Hi Edward,

I would just follow along with the code in the CLI module. You need to do the initial mesh forging tasks as "sharded" then you need to call sharded mesh merge.

Let me know if you need more help!

from igneous.

eddyod avatar eddyod commented on August 15, 2024

Something like this?

tasks = tc.create_meshing_tasks(layer_path, mip=0, sharded=True)
tq.insert(tasks)
tq.execute()

tasks = tc.create_sharded_multires_mesh_tasks(layer_path, num_lod=2)
tq.insert(tasks)    
tq.execute()

from igneous.

william-silversmith avatar william-silversmith commented on August 15, 2024

That looks like it works!

from igneous.

eddyod avatar eddyod commented on August 15, 2024

Must we use the sharded=True parameter? When I use this, I get:
python3.10/site-packages/cloudvolume/lib.py:297: RuntimeWarning: overflow encountered in scalar multiply
return reduce(operator.mul, self)

And then this file is not created: mesh_mip_0_err_40/0.shard

I'm using int8 as the data type by the way.

Thanks!

from igneous.

william-silversmith avatar william-silversmith commented on August 15, 2024

That's a pretty odd error. That makes me think the bounding box is being manipulated incorrectly for some reason. What are the dimensions of your dataset?

If you're working with a reasonably small dataset, then (I forgot this existed for a sec) you can use the unsharded multi-res. Omit the sharded flag and use this function, create_unsharded_multires_mesh_tasks, to create the merging tasks.

https://github.com/seung-lab/igneous/blob/master/igneous/task_creation/mesh.py#L449-L513

from igneous.

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.