chore: fix workflows and build now that model files are not in the repository
This commit is contained in:
@@ -12,6 +12,31 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<DownloadDirectory>Resources\Files</DownloadDirectory>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="DownloadModels" BeforeTargets="PrepareForBuild">
|
||||
<Message Text="Downloading models..." Importance="high" />
|
||||
|
||||
<MakeDir Directories="$(DownloadDirectory)" Condition="!Exists('$(DownloadDirectory)')" />
|
||||
|
||||
<Exec
|
||||
Condition="!Exists('$(DownloadDirectory)\rmbg.onnx')"
|
||||
Command="curl -L "https://share.stevanfreeborn.com/bgr/rmbg.onnx" -o "$(DownloadDirectory)\rmbg.onnx""
|
||||
/>
|
||||
|
||||
<Exec
|
||||
Condition="!Exists('$(DownloadDirectory)\u2net.onnx')"
|
||||
Command="curl -L "https://share.stevanfreeborn.com/bgr/u2net.onnx" -o "$(DownloadDirectory)\u2net.onnx""
|
||||
/>
|
||||
|
||||
<Exec
|
||||
Condition="!Exists('$(DownloadDirectory)\modnet.onnx')"
|
||||
Command="curl -L "https://share.stevanfreeborn.com/bgr/modnet.onnx" -o "$(DownloadDirectory)\modnet.onnx""
|
||||
/>
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
|
||||
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
|
||||
|
||||
Reference in New Issue
Block a user