TensorFlow-Deep-Music
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TensorFlow-Deep-Music --version 1.0.1
NuGet\Install-Package TensorFlow-Deep-Music -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TensorFlow-Deep-Music" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TensorFlow-Deep-Music --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TensorFlow-Deep-Music, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TensorFlow-Deep-Music as a Cake Addin #addin nuget:?package=TensorFlow-Deep-Music&version=1.0.1 // Install TensorFlow-Deep-Music as a Cake Tool #tool nuget:?package=TensorFlow-Deep-Music&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
csharp-deep-learning-audio
Deep Learning for Audio in CSharp and Keras
Environment Configuration Before Install
The packages runs in x64 and built with .NET 4.6.1. Therefore you need to
- Set the "Target framework" to ".NET Framework 4.6.1" in the Application tab of your project Properties
- Set the "Platform Target" to x64 in the Build tab of your project Properties
- Set the .NET configuration manager to x64 in Visual Studio IDE
Install
Install-Package TensorFlow-Deep-Music -Version 1.0.1
The following dlls are also installed when installing the TensorFlow-Deep-Music:
- Bass.NET Version 1.0.0 (used to convert audio file to melgram)
- TensorFlowSharp Version 1.7.0 (used to run the tensorflow audio classifier trained models)
- System.ValueTuple Version 4.4.0 (required by TensorFlowSharp)
Usage
Below is the code showing how to use Cifar10AudioClassifier or ResNetV2AudioClassifier to predict the genres of an audio file:
using System;
using csharp_deep_learning_audio;
using System.IO;
namespace csharp_deep_learning_audio_samples
{
class Program
{
static void Main(string[] args)
{
Cifar10AudioClassifier c = new Cifar10AudioClassifier();
string dataDirPath = @"C:\Users\chen0\git\csharp-deep-learning-audio\gtzan\genres";
string[] subDirectories = Directory.GetDirectories(dataDirPath);
foreach(string subDirectory in subDirectories)
{
string[] files = Directory.GetFiles(subDirectory, "*.au");
foreach(string file in files)
{
Console.WriteLine("classifing: {0}", file);
Console.WriteLine("predicted: {0}", c.PredictLabel(file));
break;
}
}
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Music classifier, music search engine, and music recommendation built using TensorFlowSharp for .NET 4.6.1 x64 platform