Spaces:
Runtime error
Runtime error
Create builtin.py
Browse files
3rdparty/densepose/converters/builtin.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) Facebook, Inc. and its affiliates.
|
| 2 |
+
|
| 3 |
+
from ..structures import DensePoseChartPredictorOutput, DensePoseEmbeddingPredictorOutput
|
| 4 |
+
from . import (
|
| 5 |
+
HFlipConverter,
|
| 6 |
+
ToChartResultConverter,
|
| 7 |
+
ToChartResultConverterWithConfidences,
|
| 8 |
+
ToMaskConverter,
|
| 9 |
+
densepose_chart_predictor_output_hflip,
|
| 10 |
+
densepose_chart_predictor_output_to_result,
|
| 11 |
+
densepose_chart_predictor_output_to_result_with_confidences,
|
| 12 |
+
predictor_output_with_coarse_segm_to_mask,
|
| 13 |
+
predictor_output_with_fine_and_coarse_segm_to_mask,
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
ToMaskConverter.register(
|
| 17 |
+
DensePoseChartPredictorOutput, predictor_output_with_fine_and_coarse_segm_to_mask
|
| 18 |
+
)
|
| 19 |
+
ToMaskConverter.register(
|
| 20 |
+
DensePoseEmbeddingPredictorOutput, predictor_output_with_coarse_segm_to_mask
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
ToChartResultConverter.register(
|
| 24 |
+
DensePoseChartPredictorOutput, densepose_chart_predictor_output_to_result
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
ToChartResultConverterWithConfidences.register(
|
| 28 |
+
DensePoseChartPredictorOutput, densepose_chart_predictor_output_to_result_with_confidences
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
+
HFlipConverter.register(DensePoseChartPredictorOutput, densepose_chart_predictor_output_hflip)
|