Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 17d878f

Browse files
author
Deepak Battini
committed
2 parents 33f9184 + 3dfb1d0 commit 17d878f

File tree

15 files changed

+95
-120
lines changed

15 files changed

+95
-120
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
![Build Status](https://travis-ci.org/deepakkumar1984/SiaNet.svg?branch=master)
22
[![Join the chat at https://gitter.im/sia-cog/SiaNet](https://badges.gitter.im/sia-cog/SiaNet.svg)](https://gitter.im/sia-cog/SiaNet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
33

4-
# A CSharp deep learning wrapper with CNTK backend
4+
# A C# deep learning wrapper with CNTK backend
55

66
Developing a C# wrapper to help developer easily create and train deep neural network models. I am working on enhancing the interface to load data, build model, train and predict.
77

8+
## Install using NuGet
9+
GPU and CPU Version: [https://www.nuget.org/packages/SiaNet](https://www.nuget.org/packages/SiaNet)
10+
11+
For better performance on CPU please use CPU only version.
12+
CPU Only Version: [https://www.nuget.org/packages/SiaNet.CPUOnly/](https://www.nuget.org/packages/SiaNet.CPUOnly/)
13+
814
## Load dataset (Housing regression example)
915
```DataFrame frame = new DataFrame();```
1016

@@ -56,4 +62,10 @@ Developing a C# wrapper to help developer easily create and train deep neural ne
5662

5763
API Documentation: https://deepakkumar1984.github.io/SiaNet/
5864

65+
## Examples Docs (More to add)
66+
67+
- Housing Regression: [https://github.com/deepakkumar1984/SiaNet/wiki/Example---Housing-Regression-Problem](https://github.com/deepakkumar1984/SiaNet/wiki/Example---Housing-Regression-Problem)
68+
- MNIST Training: [https://github.com/deepakkumar1984/SiaNet/wiki/Example---MNIST-Training](https://github.com/deepakkumar1984/SiaNet/wiki/Example---MNIST-Training)
69+
- Image Classification: [https://github.com/deepakkumar1984/SiaNet/wiki/Example---Image-Classification](https://github.com/deepakkumar1984/SiaNet/wiki/Example---Image-Classification)
70+
- Object Detection: [https://github.com/deepakkumar1984/SiaNet/wiki/Example---Object-Detection](https://github.com/deepakkumar1984/SiaNet/wiki/Example---Object-Detection)
5971

Sia.DNN.sln

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26430.4
4+
VisualStudioVersion = 15.0.27004.2006
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SiaNet", "SiaNet\SiaNet.csproj", "{FE7BC641-ED87-493E-A8FE-89C2069DDF1D}"
77
EndProject
@@ -13,6 +13,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SiaNet.Examples.CPUOnly", "
1313
EndProject
1414
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SiaNet.Common", "SiaNet.Common\SiaNet.Common.csproj", "{32ED27D4-AC7A-4011-B399-D2EA42E282C7}"
1515
EndProject
16+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFiles", "SolutionFiles", "{91DC2A71-69FB-4C64-ABF6-2EFC2390CF4E}"
17+
ProjectSection(SolutionItems) = preProject
18+
SolutionAssemblyVersionInfo.cs = SolutionAssemblyVersionInfo.cs
19+
EndProjectSection
20+
EndProject
1621
Global
1722
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1823
Debug|Any CPU = Debug|Any CPU
@@ -35,8 +40,8 @@ Global
3540
{ECBDDE28-2569-4019-B65E-F9541BF46C07}.Debug|x64.Build.0 = Debug|x64
3641
{ECBDDE28-2569-4019-B65E-F9541BF46C07}.Release|Any CPU.ActiveCfg = Release|Any CPU
3742
{ECBDDE28-2569-4019-B65E-F9541BF46C07}.Release|Any CPU.Build.0 = Release|Any CPU
38-
{ECBDDE28-2569-4019-B65E-F9541BF46C07}.Release|x64.ActiveCfg = Release|Any CPU
39-
{ECBDDE28-2569-4019-B65E-F9541BF46C07}.Release|x64.Build.0 = Release|Any CPU
43+
{ECBDDE28-2569-4019-B65E-F9541BF46C07}.Release|x64.ActiveCfg = Release|x64
44+
{ECBDDE28-2569-4019-B65E-F9541BF46C07}.Release|x64.Build.0 = Release|x64
4045
{67E77F14-101D-433E-A9A0-38CB8C00406C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4146
{67E77F14-101D-433E-A9A0-38CB8C00406C}.Debug|Any CPU.Build.0 = Debug|Any CPU
4247
{67E77F14-101D-433E-A9A0-38CB8C00406C}.Debug|x64.ActiveCfg = Debug|x64
@@ -51,16 +56,16 @@ Global
5156
{204D9242-D64B-4BDA-A77A-6B8AFD8A550E}.Debug|x64.Build.0 = Debug|x64
5257
{204D9242-D64B-4BDA-A77A-6B8AFD8A550E}.Release|Any CPU.ActiveCfg = Release|Any CPU
5358
{204D9242-D64B-4BDA-A77A-6B8AFD8A550E}.Release|Any CPU.Build.0 = Release|Any CPU
54-
{204D9242-D64B-4BDA-A77A-6B8AFD8A550E}.Release|x64.ActiveCfg = Release|Any CPU
55-
{204D9242-D64B-4BDA-A77A-6B8AFD8A550E}.Release|x64.Build.0 = Release|Any CPU
59+
{204D9242-D64B-4BDA-A77A-6B8AFD8A550E}.Release|x64.ActiveCfg = Release|x64
60+
{204D9242-D64B-4BDA-A77A-6B8AFD8A550E}.Release|x64.Build.0 = Release|x64
5661
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5762
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
5863
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Debug|x64.ActiveCfg = Debug|x64
5964
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Debug|x64.Build.0 = Debug|x64
6065
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
6166
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Release|Any CPU.Build.0 = Release|Any CPU
62-
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Release|x64.ActiveCfg = Release|Any CPU
63-
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Release|x64.Build.0 = Release|Any CPU
67+
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Release|x64.ActiveCfg = Release|x64
68+
{32ED27D4-AC7A-4011-B399-D2EA42E282C7}.Release|x64.Build.0 = Release|x64
6469
EndGlobalSection
6570
GlobalSection(SolutionProperties) = preSolution
6671
HideSolutionNode = FALSE

SiaNet.CPUOnly/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,7 @@
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
88
[assembly: AssemblyTitle("SiaNet.CPUOnly")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("SiaNet.CPUOnly")]
13-
[assembly: AssemblyCopyright("Copyright © 2017")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
219

2210
// The following GUID is for the ID of the typelib if this project is exposed to COM
2311
[assembly: Guid("ecbdde28-2569-4019-b65e-f9541bf46c07")]
2412

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]

SiaNet.CPUOnly/SiaNet.CPUOnly.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@
228228
<Compile Include="..\SiaNet\Utility.cs">
229229
<Link>Utility.cs</Link>
230230
</Compile>
231+
<Compile Include="..\SolutionAssemblyVersionInfo.cs">
232+
<Link>SolutionAssemblyVersionInfo.cs</Link>
233+
</Compile>
231234
<Compile Include="Model\Layers\ImageDataFrame.cs" />
232235
<Compile Include="Properties\AssemblyInfo.cs" />
233236
</ItemGroup>

SiaNet.Common/Logging.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class Logging
2525
/// <param name="message">The message.</param>
2626
public static void WriteTrace(string message)
2727
{
28-
OnWriteLog(message);
28+
OnWriteLog?.Invoke(message);
2929
}
3030

3131
/// <summary>
@@ -34,7 +34,7 @@ public static void WriteTrace(string message)
3434
/// <param name="ex">The ex.</param>
3535
public static void WriteTrace(Exception ex)
3636
{
37-
OnWriteLog("Exception: " + ex.Message);
37+
OnWriteLog?.Invoke("Exception: " + ex.Message);
3838
}
3939
}
4040
}

SiaNet.Common/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,6 @@
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
88
[assembly: AssemblyTitle("SiaNet.Common")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("SiaNet.Common")]
13-
[assembly: AssemblyCopyright("Copyright © 2017")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
219

2210
// The following GUID is for the ID of the typelib if this project is exposed to COM
2311
[assembly: Guid("32ed27d4-ac7a-4011-b399-d2ea42e282c7")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]

SiaNet.Common/SiaNet.Common.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
<Reference Include="System.Xml" />
6868
</ItemGroup>
6969
<ItemGroup>
70+
<Compile Include="..\SolutionAssemblyVersionInfo.cs">
71+
<Link>SolutionAssemblyVersionInfo.cs</Link>
72+
</Compile>
7073
<Compile Include="Downloader.cs" />
7174
<Compile Include="EnumConstants.cs" />
7275
<Compile Include="Enumerations.cs" />

SiaNet.Core/SiaNet.Core.csproj

Lines changed: 0 additions & 11 deletions
This file was deleted.

SiaNet/Model/ImageDataFrame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private bool GetNextFromFrame(int batchSize)
103103
}
104104
}
105105
}
106-
106+
107107
CurrentX = Value.CreateBatch(features, byteData.Select(b => (float)b).ToList(), GlobalParameters.Device);
108108
CurrentY = Value.CreateBatch(features, labelData.Select(b => (float)b).ToList(), GlobalParameters.Device);
109109

SiaNet/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,8 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("Sia.DNN")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("Sia.DNN")]
13-
[assembly: AssemblyCopyright("Copyright © 2017")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
8+
[assembly: AssemblyTitle("SiaNet")]
219

2210
// The following GUID is for the ID of the typelib if this project is exposed to COM
2311
[assembly: Guid("fe7bc641-ed87-493e-a8fe-89c2069ddf1d")]
2412

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.1.1.0")]
36-
[assembly: AssemblyFileVersion("0.1.1.0")]

0 commit comments

Comments
 (0)