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
Some use cases require a bit of array handling in between shortfin program invocations or as pre/post-processing steps. In SD workflows, it's common to see a permutation of the image output array in preparation for image library (e.g. pillow)
consumption.
Perhaps implementing the equivalent of np.transpose (docs) would achieve what we need for most cases.
The following is a snippet showing how we use np.transpose in SDXL:
Some use cases require a bit of array handling in between shortfin program invocations or as pre/post-processing steps. In SD workflows, it's common to see a permutation of the image output array in preparation for image library (e.g. pillow)
consumption.
Perhaps implementing the equivalent of np.transpose (docs) would achieve what we need for most cases.
The following is a snippet showing how we use np.transpose in SDXL:
The text was updated successfully, but these errors were encountered: