Closed Heegreis closed 2 years ago
Why Predict repeated instantiation? https://github.com/fastyangmh/ImageClassification/blob/483e6f8e9131b7a172696d3488036843f0abf5ec/main.py#L21-L23 Maybe edit as following:
Predict
predicter = Predict(project_parameters=project_parameters) result = predicter.predict(filepath=project_parameters.root)
and the parameter filepath when call Predict.predict is not match to the definition inputs. https://github.com/fastyangmh/ImageClassification/blob/483e6f8e9131b7a172696d3488036843f0abf5ec/src/predict.py#L30
filepath
Predict.predict
inputs
@Heegreis, I solved the problem, please confirm the PR. If there is no problem, I will merge to the dev branch. Thank you.
Why
Predict
repeated instantiation? https://github.com/fastyangmh/ImageClassification/blob/483e6f8e9131b7a172696d3488036843f0abf5ec/main.py#L21-L23 Maybe edit as following:and the parameter
filepath
when callPredict.predict
is not match to the definitioninputs
. https://github.com/fastyangmh/ImageClassification/blob/483e6f8e9131b7a172696d3488036843f0abf5ec/src/predict.py#L30