-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite the fns_candy_style_transfer example so that it doesn't depends on libpng on Windows #163
Conversation
if(WIN32) | ||
target_sources(fns_candy_style_transfer PRIVATE image_file_wic.cc) | ||
else() | ||
target_sources(fns_candy_style_transfer PRIVATE image_file_libpng.c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my understanding is that libpng things (PNG_LIBRARIES, PNG_INCLUDE_DIRS, PNG_LIBDIR) aren't used on windows. perhaps it would be clearer to put them in this block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, You are right.
ci_build/download_ort_release.sh
Outdated
done | ||
|
||
apt-get update | ||
apt-get install -y cmake gcc g++ libpng-dev libjpeg-turbo8-dev curl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this is not really part of "downloading ORT", maybe it could go in a separate script or this one could be renamed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
FAIL_FAST_IF_FAILED(decoder->GetFrameCount(&count)); | ||
if (count != 1) { | ||
printf("The image has multiple frames, I don't know which to choose.\n"); | ||
abort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not return -1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I updated the code.
$
sign in front of it.