Closed eddyxu closed 2 years ago
This PR sets a rule to find a "ModelType" class via MODEL_TYPE attribute. It points to a class "ModelSpec" which wraps the actual model (pytorch), and acts as a proxy. It offers the flexibility to adapt non-standard pytorch models.
MODEL_TYPE
Related to https://github.com/eto-ai/rikai/issues/520 and support rikai-yolov5 using pytorch runner
rikai-yolov5
Ok, filed #533 and #532 as follow ups
This PR sets a rule to find a "ModelType" class via
MODEL_TYPE
attribute. It points to a class "ModelSpec" which wraps the actual model (pytorch), and acts as a proxy. It offers the flexibility to adapt non-standard pytorch models.