Skip to content

Commit

Permalink
fix cuda build
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Nov 5, 2024
1 parent 5f969a6 commit 5a4b723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otherarch/sdcpp/sdtype_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
sd_params->mode = (img2img_data==""?SDMode::TXT2IMG:SDMode::IMG2IMG);

//ensure unsupported dimensions are fixed
int biggestdim = std::max(sd_params->width,sd_params->height);
int biggestdim = (sd_params->width>sd_params->height?sd_params->width:sd_params->height);
auto loadedsdver = get_loaded_sd_version(sd_ctx);
if(loadedsdver==SDVersion::VERSION_FLUX_DEV || loadedsdver==SDVersion::VERSION_FLUX_SCHNELL)
{
Expand Down

0 comments on commit 5a4b723

Please sign in to comment.