Giter Site home page Giter Site logo

Comments (5)

jingpengw avatar jingpengw commented on June 15, 2024

this error comes from a super big neuron (id: 76197), which expands to the whole range of XY section!

image

from realneuralnetworks.jl.

jingpengw avatar jingpengw commented on June 15, 2024

suggestions from @nicholasturner1

I'd try the same thing I mentioned before - compare `prod(max_dims)` to the max index into the sparse vector (`maximum(Int[sub2ind(max_dims, points[i,:]... ) for i=1:num_points ])`) (edited)


[10:43] 
the `prod` value should always be greater than or equal to the other one unless the indexing scheme is somehow wrong

indeed, it is this problem.
max_dims = (3276,975,1750)

ERROR: LoadError: AssertionError: prod(max_dims) > maximum(Int[sub2ind(max_dims,points[i,:]...) for i = 1:num_points])
 in create_node_lookup(::Array{UInt32,2}) at /home/nico/.julia/v0.5/RealNeuralNetworks/src/NodeNets.jl:349
 in #NodeNet#3(::Array{Float64,1}, ::RealNeuralNetworks.NodeNets.#alexs_penalty, ::Tuple{UInt32,UInt32,UInt32}, ::Type{T}, 
::Array{UInt32,2}) at /home/nico/.julia/v0.5/RealNeuralNetworks/src/NodeNets.jl:74
 in (::Core.#kw#Type)(::Array{Any,1}, ::Type{RealNeuralNetworks.NodeNets.NodeNet}, ::Array{UInt32,2}) at ./<missing>:0
 in macro expansion at ./util.jl:188 [inlined]
 in trace(::RealNeuralNetworks.Manifests.Manifest, ::Int64) at /home/nico/.julia/v0.5/RealNeuralNetworks/src/Manifests.jl:7
8
 in #trace#1(::String, ::String, ::UInt32, ::Function, ::Int64) at /home/nico/.julia/v0.5/RealNeuralNetworks/scripts/skelet
onize.jl:20
 in (::#kw##trace)(::Array{Any,1}, ::#trace, ::Int64) at ./<missing>:0
 in main() at /home/nico/.julia/v0.5/RealNeuralNetworks/scripts/skeletonize.jl:94
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:265
 in _start() at ./client.jl:321
while loading /home/nico/.julia/v0.5/RealNeuralNetworks/scripts/skeletonize.jl, in expression starting on line 99

from realneuralnetworks.jl.

nicholasturner1 avatar nicholasturner1 commented on June 15, 2024

You mentioned that your chunk size is (512,512,512) before, and that the coordinates were local. If that's the case, the maximum possible value of max_dims should be (512,512,512), since it should be the maximum value in each dimension of the passed coordinates. Perhaps you're just making the data structures for the graph once you've finished chunk-wise processing.

from realneuralnetworks.jl.

nicholasturner1 avatar nicholasturner1 commented on June 15, 2024

You're using UInt32, so this is another overflow problem. prod(3276,975,1750) > typemax(UInt32)

from realneuralnetworks.jl.

jingpengw avatar jingpengw commented on June 15, 2024

exactly, this is overflow. but not because the 512x512x512, but because the neuron spans a big space and the max_dims is too big.
prod((3276,975,1750)) > Int(typemax(UInt32)) = true

fixing issue:
6f581de
a5c7d2f

from realneuralnetworks.jl.

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.