Backend: Update label rules
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
3e4e72b00f
commit
90df882376
3 changed files with 50 additions and 51 deletions
11
Makefile
11
Makefile
|
@ -21,7 +21,7 @@ test: test-js test-go
|
||||||
acceptance-all: start acceptance acceptance-firefox stop
|
acceptance-all: start acceptance acceptance-firefox stop
|
||||||
test-all: test acceptance-all
|
test-all: test acceptance-all
|
||||||
fmt: fmt-js fmt-go
|
fmt: fmt-js fmt-go
|
||||||
upgrade: upgrade-js upgrade-go
|
upgrade: dep-upgrade-js dep-upgrade
|
||||||
clean-local: clean-local-config clean-local-share clean-local-cache
|
clean-local: clean-local-config clean-local-share clean-local-cache
|
||||||
clean-install: clean-local dep build-js install-bin install-assets
|
clean-install: clean-local dep build-js install-bin install-assets
|
||||||
start:
|
start:
|
||||||
|
@ -55,6 +55,10 @@ dep-js:
|
||||||
(cd frontend && npm install --silent)
|
(cd frontend && npm install --silent)
|
||||||
dep-go:
|
dep-go:
|
||||||
go build -v ./...
|
go build -v ./...
|
||||||
|
dep-upgrade:
|
||||||
|
go get -u -t ./...
|
||||||
|
dep-upgrade-js:
|
||||||
|
(cd frontend && npm --depth 3 update)
|
||||||
dep-tensorflow:
|
dep-tensorflow:
|
||||||
scripts/download-nasnet.sh
|
scripts/download-nasnet.sh
|
||||||
scripts/download-nsfw.sh
|
scripts/download-nsfw.sh
|
||||||
|
@ -135,8 +139,3 @@ fmt-go:
|
||||||
go fmt ./pkg/... ./internal/... ./cmd/...
|
go fmt ./pkg/... ./internal/... ./cmd/...
|
||||||
tidy:
|
tidy:
|
||||||
go mod tidy
|
go mod tidy
|
||||||
upgrade-js:
|
|
||||||
(cd frontend && npm --depth 2 update)
|
|
||||||
upgrade-go:
|
|
||||||
go mod tidy
|
|
||||||
go get -u
|
|
||||||
|
|
|
@ -351,10 +351,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{"animal"},
|
Categories: []string{"animal"},
|
||||||
},
|
},
|
||||||
"ball": {
|
"ball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"balloon": {
|
"balloon": {
|
||||||
Label: "",
|
Label: "",
|
||||||
|
@ -453,10 +453,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"baseball": {
|
"baseball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"basenji dog": {
|
"basenji dog": {
|
||||||
Label: "dog",
|
Label: "dog",
|
||||||
|
@ -471,10 +471,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"basketball": {
|
"basketball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"basset dog": {
|
"basset dog": {
|
||||||
Label: "dog",
|
Label: "dog",
|
||||||
|
@ -574,19 +574,19 @@ var rules = LabelRules{
|
||||||
},
|
},
|
||||||
"beer": {
|
"beer": {
|
||||||
Label: "beer",
|
Label: "beer",
|
||||||
Threshold: 0.250000,
|
Threshold: 0.400000,
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
Categories: []string{"beverage", "drinks"},
|
Categories: []string{"beverage", "drinks"},
|
||||||
},
|
},
|
||||||
"beer bottle": {
|
"beer bottle": {
|
||||||
Label: "beer",
|
Label: "beer",
|
||||||
Threshold: 0.250000,
|
Threshold: 0.400000,
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
Categories: []string{"beverage", "drinks"},
|
Categories: []string{"beverage", "drinks"},
|
||||||
},
|
},
|
||||||
"beer glass": {
|
"beer glass": {
|
||||||
Label: "beer",
|
Label: "beer",
|
||||||
Threshold: 0.250000,
|
Threshold: 0.400000,
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
Categories: []string{"beverage", "drinks"},
|
Categories: []string{"beverage", "drinks"},
|
||||||
},
|
},
|
||||||
|
@ -1516,7 +1516,7 @@ var rules = LabelRules{
|
||||||
},
|
},
|
||||||
"cooking": {
|
"cooking": {
|
||||||
Label: "cooking",
|
Label: "cooking",
|
||||||
Threshold: 0.200000,
|
Threshold: 0.400000,
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
|
@ -2236,7 +2236,7 @@ var rules = LabelRules{
|
||||||
},
|
},
|
||||||
"frying pan": {
|
"frying pan": {
|
||||||
Label: "cooking",
|
Label: "cooking",
|
||||||
Threshold: 0.200000,
|
Threshold: 0.400000,
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
|
@ -2361,10 +2361,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{"water", "animal"},
|
Categories: []string{"water", "animal"},
|
||||||
},
|
},
|
||||||
"golf ball": {
|
"golf ball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"golfcart": {
|
"golfcart": {
|
||||||
Label: "outdoor",
|
Label: "outdoor",
|
||||||
|
@ -3148,7 +3148,7 @@ var rules = LabelRules{
|
||||||
},
|
},
|
||||||
"ladle": {
|
"ladle": {
|
||||||
Label: "cooking",
|
Label: "cooking",
|
||||||
Threshold: 0.200000,
|
Threshold: 0.400000,
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
|
@ -3994,7 +3994,7 @@ var rules = LabelRules{
|
||||||
},
|
},
|
||||||
"pan": {
|
"pan": {
|
||||||
Label: "cooking",
|
Label: "cooking",
|
||||||
Threshold: 0.200000,
|
Threshold: 0.400000,
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
|
@ -4209,10 +4209,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{"fruit"},
|
Categories: []string{"fruit"},
|
||||||
},
|
},
|
||||||
"ping-pong ball": {
|
"ping-pong ball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"pinwheel": {
|
"pinwheel": {
|
||||||
Label: "",
|
Label: "",
|
||||||
|
@ -4707,10 +4707,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{"animal"},
|
Categories: []string{"animal"},
|
||||||
},
|
},
|
||||||
"rugby ball": {
|
"rugby ball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"rule": {
|
"rule": {
|
||||||
Label: "",
|
Label: "",
|
||||||
|
@ -5097,10 +5097,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"soccer ball": {
|
"soccer ball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"sock": {
|
"sock": {
|
||||||
Label: "portrait",
|
Label: "portrait",
|
||||||
|
@ -5529,10 +5529,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{"water", "animal"},
|
Categories: []string{"water", "animal"},
|
||||||
},
|
},
|
||||||
"tennis ball": {
|
"tennis ball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"terrapin": {
|
"terrapin": {
|
||||||
Label: "turtle",
|
Label: "turtle",
|
||||||
|
@ -5919,10 +5919,10 @@ var rules = LabelRules{
|
||||||
Categories: []string{},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"volleyball": {
|
"volleyball": {
|
||||||
Label: "sports",
|
Label: "",
|
||||||
Threshold: 0.000000,
|
Threshold: 1.000000,
|
||||||
Priority: -1,
|
Priority: -2,
|
||||||
Categories: []string{"round"},
|
Categories: []string{},
|
||||||
},
|
},
|
||||||
"vulture bird": {
|
"vulture bird": {
|
||||||
Label: "bird",
|
Label: "bird",
|
||||||
|
|
|
@ -1880,7 +1880,7 @@ beacon:
|
||||||
|
|
||||||
beer:
|
beer:
|
||||||
label: beer
|
label: beer
|
||||||
threshold: 0.25
|
threshold: 0.4
|
||||||
categories:
|
categories:
|
||||||
- beverage
|
- beverage
|
||||||
- drinks
|
- drinks
|
||||||
|
@ -2352,7 +2352,7 @@ jeep:
|
||||||
|
|
||||||
cooking:
|
cooking:
|
||||||
label: cooking
|
label: cooking
|
||||||
threshold: 0.2
|
threshold: 0.4
|
||||||
|
|
||||||
pan:
|
pan:
|
||||||
see: cooking
|
see: cooking
|
||||||
|
|
Loading…
Reference in a new issue