GithubHelp home page GithubHelp logo

Comments (7)

cbovar avatar cbovar commented on July 19, 2024

I will look at that when I'll be back from holidays

from convnetsharp.

cbovar avatar cbovar commented on July 19, 2024

Serialization tests should be made generic to detect such error earlier

from convnetsharp.

Diapa avatar Diapa commented on July 19, 2024

I have this problem. How do I fix it? I installed with nuget and I use regressionlayer. The exception seems to come from

var t = Activator.CreateInstance(type, dico) as LayerBase<T>;

from convnetsharp.

cbovar avatar cbovar commented on July 19, 2024

Hi @Diapa ,
Could you try with the new nuget package (0.4.3) ?

from convnetsharp.

Diapa avatar Diapa commented on July 19, 2024

Yes it works now thank you, but using this version GPU doesn't work. I get the same problem, but only using GPU. Additionally I get an ArgumentNullException when adding a convolutional layer to the network (only GPU version). It comes from ConvNetSharp.Volume.GPU.Single.Volume.LoadKernels().

from convnetsharp.

cbovar avatar cbovar commented on July 19, 2024

Do you have a minimal code that reproduces this error?

from convnetsharp.

Diapa avatar Diapa commented on July 19, 2024

Maybe there's some problem with my CUDA/cudnn installation if you don't get this problem... But I was able to run GPU version with v0.4.2.

using ConvNetSharp.Core;
using ConvNetSharp.Core.Layers;
using ConvNetSharp.Volume.GPU.Single;

namespace m
{
    class Program
    {
        static void Main(string[] args)
        {
            BuilderInstance.Volume = new VolumeBuilder();

            Net<float> net = new Net<float>();
            net.AddLayer(new InputLayer<float>(20, 20, 3));
            net.AddLayer(new ConvLayer<float>(5, 5, 48)); //System.ArgumentNullException
            /*
            System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)
            System.IO.StreamReader..ctor(Stream stream)
            ConvNetSharp.Volume.GPU.KernelLoader`1.LoadKernel(String name, Stream stream)
            ConvNetSharp.Volume.GPU.Single.Volume.LoadKernels()
            ConvNetSharp.Volume.GPU.Single.VolumeBuilder.Random(Shape shape, Double mu, Double std)
            ConvNetSharp.Core.Layers.ConvLayer`1.UpdateOutputSize()
            ConvNetSharp.Core.Net`1.AddLayer(LayerBase`1 layer)
            [row 15 in this file]
            */
        }
    }
}

from convnetsharp.

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.