mirror of
https://github.com/nod-ai/AMD-SHARK-Studio.git
synced 2026-04-03 03:00:17 -04:00
bugfix related to the height width params.
This commit is contained in:
@@ -50,10 +50,10 @@ def get_input_info(model_info, max_len, width, height):
|
||||
# for clip, unet and vae respectively.
|
||||
def get_model_configuration(model_id, max_len, width, height):
|
||||
if model_id in base_models:
|
||||
return get_input_info(base_models[model_id], max_len, height, width)
|
||||
return get_input_info(base_models[model_id], max_len, width, height)
|
||||
elif model_id in variants:
|
||||
return get_input_info(
|
||||
base_models[variants[model_id]], max_len, height, width
|
||||
base_models[variants[model_id]], max_len, width, height
|
||||
)
|
||||
else:
|
||||
sys.exit(
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"shape": [
|
||||
1,
|
||||
4,
|
||||
"width",
|
||||
"height"
|
||||
"height",
|
||||
"width"
|
||||
],
|
||||
"dtype": "f32"
|
||||
},
|
||||
@@ -53,8 +53,8 @@
|
||||
"shape": [
|
||||
1,
|
||||
4,
|
||||
"width",
|
||||
"height"
|
||||
"height",
|
||||
"width"
|
||||
],
|
||||
"dtype": "f32"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user