We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333e2bb commit af32785Copy full SHA for af32785
tools/mtmd/clip.cpp
@@ -2587,7 +2587,10 @@ struct clip_model_loader {
2587
}
2588
2589
2590
- model.proj_type = clip_projector_type_from_string(proj_type);
+ if (!proj_type.empty())
2591
+ {
2592
+ model.proj_type = clip_projector_type_from_string(proj_type);
2593
+ }
2594
2595
if (model.proj_type == PROJECTOR_TYPE_UNKNOWN) {
2596
throw std::runtime_error(string_format("%s: unknown projector type: %s\n", __func__, proj_type.c_str()));
0 commit comments