You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated so that YoloX uses the same code paths as other models.
* Removed code that was duplicating existing functions
* Integrated YoloX model into existing pipeline
* This means YoloX now has an associated UnstructuredModel called UnstructuredYoloXModel
* The output of YoloX inference is now a layoutparser Layout object, like the other UnstructuredModels so that it can integrate with the DocumentLayout, PageLayout, and LayoutElement classes
* Other functionality is provided by the DocumentLayout, PageLayout, and LayoutElement classes
* Removed jsons dependency that was used in testing and updated deps. The dependency had a cool feature that allowed it to construct non-json-serializable classes from a json, but since that was being used to check content, content could be checked through another method.
* One piece of functionality that was in the code prior to this change and isn't now is the ability to create test artifacts that can be viewed for debugging purposes. This can be added back in, but artifacts must be created from the new outputs of the model (either a layoutparser Layout object or PageLayout object).
This PR also allows the capability to create a PageLayout with a fixed layout, i.e. the layout and location of text elements is specified at construction rather than inferred by model. This is useful for use cases where the layout of a particular form is known.
0 commit comments