mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-06-16 09:59:13 +02:00
makefile to reload models: add target for SavedModel Keras format
This commit is contained in:
parent
60c9f4786c
commit
19504cb932
1 changed files with 4 additions and 2 deletions
|
|
@ -26,17 +26,19 @@ CURRENT_MODELS += eynollah-enhancement_20210425
|
||||||
all: tf-serving
|
all: tf-serving
|
||||||
|
|
||||||
tf-serving: $(CURRENT_MODELS:%=$(MODELS_DST)/%)
|
tf-serving: $(CURRENT_MODELS:%=$(MODELS_DST)/%)
|
||||||
|
tf: $(CURRENT_MODELS:%=$(MODELS_DST)/%)
|
||||||
keras: $(CURRENT_MODELS:%=$(MODELS_DST)/%.keras)
|
keras: $(CURRENT_MODELS:%=$(MODELS_DST)/%.keras)
|
||||||
hdf5: $(CURRENT_MODELS:%=$(MODELS_DST)/%.h5)
|
hdf5: $(CURRENT_MODELS:%=$(MODELS_DST)/%.h5)
|
||||||
onnx: $(CURRENT_MODELS:%=$(MODELS_DST)/%.onnx)
|
onnx: $(CURRENT_MODELS:%=$(MODELS_DST)/%.onnx)
|
||||||
|
|
||||||
|
$(MODELS_DST)/%: FORMAT = $(or $(filter tf,$(MAKECMDGOALS)), tf-serving)
|
||||||
$(MODELS_DST)/%: $(MODELS_SRC)/%
|
$(MODELS_DST)/%: $(MODELS_SRC)/%
|
||||||
eynollah-training convert \
|
eynollah-training convert \
|
||||||
$(and $(wildcard $</config.json),--rebuild) \
|
$(and $(wildcard $</config.json),--rebuild) \
|
||||||
--in $< \
|
--in $< \
|
||||||
--format tf-serving \
|
--format $(FORMAT) \
|
||||||
--out $@ \
|
--out $@ \
|
||||||
2>&1 | tee $(notdir $<).tf-serving.log
|
2>&1 | tee $(notdir $<).$(FORMAT).log
|
||||||
|
|
||||||
$(MODELS_DST)/%.keras: $(MODELS_SRC)/%
|
$(MODELS_DST)/%.keras: $(MODELS_SRC)/%
|
||||||
eynollah-training convert \
|
eynollah-training convert \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue