Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 5ba9c1e

Browse files
committed
ImageUpscaler project scaffold
1 parent 030c8b8 commit 5ba9c1e

File tree

5 files changed

+101
-0
lines changed

5 files changed

+101
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using OnnxStack.Common.Config;
2+
3+
namespace OnnxStack.ImageUpscaler.Config
4+
{
5+
public class ImageUpscalerConfig : IConfigSection
6+
{
7+
public void Initialize()
8+
{
9+
}
10+
}
11+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<ImplicitUsings>disable</ImplicitUsings>
6+
<Nullable>disable</Nullable>
7+
<PlatformTarget>x64</PlatformTarget>
8+
9+
<Title>OnnxStack.ImageUpscaler</Title>
10+
<Company>Backyard Industries</Company>
11+
<Description>
12+
OnnxRuntime Image Upscale Library for .NET Core
13+
</Description>
14+
<Copyright>Backyard Industries - 2023</Copyright>
15+
<RepositoryUrl>https://github.com/saddam213/OnnxStack</RepositoryUrl>
16+
<PackageTags>onnx;onnx-runtime;upscale</PackageTags>
17+
<Authors>sa_ddam213</Authors>
18+
<PackageReadmeFile>README.md</PackageReadmeFile>
19+
<PackageId>OnnxStack.ImageUpscaler</PackageId>
20+
<Product>$(AssemblyName)</Product>
21+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
22+
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
23+
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
24+
<PackageIcon>OnnxStack - 128x128.png</PackageIcon>
25+
</PropertyGroup>
26+
27+
<ItemGroup>
28+
<None Include="..\Assets\OnnxStack - 128x128.png" Link="OnnxStack - 128x128.png">
29+
<PackagePath>\</PackagePath>
30+
<Pack>True</Pack>
31+
</None>
32+
</ItemGroup>
33+
34+
<ItemGroup>
35+
<ProjectReference Include="..\OnnxStack.Core\OnnxStack.Core.csproj" />
36+
</ItemGroup>
37+
38+
<ItemGroup>
39+
<None Update="README.md">
40+
<PackagePath>\</PackagePath>
41+
<Pack>True</Pack>
42+
</None>
43+
</ItemGroup>
44+
45+
</Project>

OnnxStack.ImageUpscaler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# OnnxStack.ImageUpsacler
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using Microsoft.Extensions.DependencyInjection;
2+
using OnnxStack.Core;
3+
using OnnxStack.Core.Config;
4+
using OnnxStack.ImageUpscaler.Config;
5+
6+
namespace OnnxStack.ImageUpscaler
7+
{
8+
public static class Registration
9+
{
10+
/// <summary>
11+
/// Register OnnxStack ImageUpscaler services
12+
/// </summary>
13+
/// <param name="serviceCollection">The service collection.</param>
14+
public static void AddOnnxStackImageUpscaler(this IServiceCollection serviceCollection)
15+
{
16+
serviceCollection.AddOnnxStack();
17+
serviceCollection.RegisterServices();
18+
serviceCollection.AddSingleton(ConfigManager.LoadConfiguration<ImageUpscalerConfig>());
19+
}
20+
21+
22+
/// <summary>
23+
/// Register OnnxStack ImageUpscaler services, AddOnnxStack() must be called before
24+
/// </summary>
25+
/// <param name="serviceCollection">The service collection.</param>
26+
/// <param name="configuration">The configuration.</param>
27+
public static void AddOnnxStackImageUpscaler(this IServiceCollection serviceCollection, ImageUpscalerConfig configuration)
28+
{
29+
serviceCollection.RegisterServices();
30+
serviceCollection.AddSingleton(configuration);
31+
}
32+
33+
34+
private static void RegisterServices(this IServiceCollection serviceCollection)
35+
{
36+
}
37+
}
38+
}

OnnxStack.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OnnxStack.Console", "OnnxSt
1111
EndProject
1212
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OnnxStack.UI", "OnnxStack.UI\OnnxStack.UI.csproj", "{85BB1855-8C3B-4049-A2DD-1130FA6CD846}"
1313
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OnnxStack.ImageUpscaler", "OnnxStack.ImageUpscaler\OnnxStack.ImageUpscaler.csproj", "{A33D08BF-7881-4910-8439-5AE46646C1DD}"
15+
EndProject
1416
Global
1517
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1618
Debug|Any CPU = Debug|Any CPU
@@ -33,6 +35,10 @@ Global
3335
{85BB1855-8C3B-4049-A2DD-1130FA6CD846}.Debug|Any CPU.Build.0 = Debug|Any CPU
3436
{85BB1855-8C3B-4049-A2DD-1130FA6CD846}.Release|Any CPU.ActiveCfg = Release|Any CPU
3537
{85BB1855-8C3B-4049-A2DD-1130FA6CD846}.Release|Any CPU.Build.0 = Release|Any CPU
38+
{A33D08BF-7881-4910-8439-5AE46646C1DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{A33D08BF-7881-4910-8439-5AE46646C1DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{A33D08BF-7881-4910-8439-5AE46646C1DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{A33D08BF-7881-4910-8439-5AE46646C1DD}.Release|Any CPU.Build.0 = Release|Any CPU
3642
EndGlobalSection
3743
GlobalSection(SolutionProperties) = preSolution
3844
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)