feat design相关模型迁移4090测试
fix
This commit is contained in:
@@ -81,7 +81,7 @@ def get_contours(image):
|
||||
|
||||
def seg_infer_image(image_obj):
|
||||
image, ori_shape = seg_preprocess(image_obj)
|
||||
client = httpclient.InferenceServerClient(url=f"{SEG_MODEL_URL}")
|
||||
client = httpclient.InferenceServerClient(url=f"{DESIGN_MODEL_URL}")
|
||||
transformed_img = image.astype(np.float32)
|
||||
# 输入集
|
||||
inputs = [
|
||||
@@ -250,7 +250,7 @@ def generate_category_recognition(image, gender):
|
||||
return preprocessed_img
|
||||
|
||||
preprocessed_img = preprocess(image)
|
||||
triton_client = httpclient.InferenceServerClient(url=ATT_TRITON_URL)
|
||||
triton_client = httpclient.InferenceServerClient(url=DESIGN_MODEL_URL)
|
||||
|
||||
inputs = [
|
||||
httpclient.InferInput("input__0", preprocessed_img.shape, datatype="FP32")
|
||||
|
||||
Reference in New Issue
Block a user