-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmix.exs
143 lines (132 loc) · 3.84 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
defmodule ExVision.Mixfile do
use Mix.Project
@version "0.4.0"
@github_url "https://github.com/software-mansion-labs/ex_vision/"
def project do
[
app: :ex_vision,
version: @version,
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
# hex
description: "A collection of ONNX vision AI models with wrappers based on Ortex",
package: package(),
# docs
name: "Ex Vision",
source_url: @github_url,
docs: docs(),
homepage_url: "https://hexdocs.pm/ex_vision"
]
end
def application do
[
included_applications: [:ex_vision],
mod: {ExVision, []},
extra_applications: []
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
defp deps do
[
# TODO: change the `>= 0.0.0` dependencies to concrete versions
{:nx, ">= 0.0.0"},
{:ortex, ">= 0.0.0"},
{:nx_image, "~> 0.1.2"},
{:bunch, "~> 1.6", runtime: false},
{:axon, "~> 0.6.1"},
{:exla, ">= 0.0.0"},
{:image, ">= 0.0.0"},
{:req, ">= 0.0.0"},
{:mimic, "~> 1.7", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
defp dialyzer() do
opts = [
flags: [:error_handling]
]
if System.get_env("CI") == "true" do
# Store PLTs in cacheable directory for CI
[plt_local_path: "priv/plts", plt_core_path: "priv/plts"] ++ opts
else
opts
end
end
defp package do
[
maintainers: ["Software Mansion"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @github_url,
"Software Mansion" => "https://www.swmansion.com"
}
]
end
@tutorials Path.wildcard("examples/*.livemd")
defp docs do
[
main: "readme",
extras: [
"README.md",
"LICENSE"
| @tutorials
],
groups_for_extras: [
Tutorials: @tutorials
],
groups_for_modules: [
Models: [
ExVision.Classification.MobileNetV3Small,
ExVision.Classification.EfficientNet_V2_S,
ExVision.Classification.EfficientNet_V2_M,
ExVision.Classification.EfficientNet_V2_L,
ExVision.Classification.SqueezeNet1_1,
ExVision.SemanticSegmentation.DeepLabV3_MobileNetV3,
ExVision.StyleTransfer.Candy,
ExVision.StyleTransfer.CandyFast,
ExVision.StyleTransfer.Udnie,
ExVision.StyleTransfer.UdnieFast,
ExVision.StyleTransfer.Mosaic,
ExVision.StyleTransfer.MosaicFast,
ExVision.StyleTransfer.Princess,
ExVision.StyleTransfer.PrincessFast,
ExVision.InstanceSegmentation.MaskRCNN_ResNet50_FPN_V2,
ExVision.ObjectDetection.Ssdlite320_MobileNetv3,
ExVision.ObjectDetection.FasterRCNN_ResNet50_FPN,
ExVision.KeypointDetection.KeypointRCNN_ResNet50_FPN
],
Types: [
ExVision.Types,
ExVision.Types.BBox,
ExVision.Types.BBoxWithKeypoints,
ExVision.Types.BBoxWithMask,
ExVision.Types.ImageMetadata
],
"Protocols and Behaviours": [
ExVision.Model,
ExVision.Model.Definition,
ExVision.Model.Definition.Ortex
]
],
nest_modules_by_prefix: [
ExVision.Model,
ExVision.Model.Definition,
ExVision.Types,
ExVision.Classification,
ExVision.SemanticSegmentation,
ExVision.StyleTransfer,
ExVision.InstanceSegmentation,
ExVision.ObjectDetection,
ExVision.KeypointDetection
],
formatters: ["html"],
source_ref: "v#{@version}"
]
end
end