Skip to content
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

Small improvements to style transfer #46

Conversation

msluszniak
Copy link

@msluszniak msluszniak commented Dec 9, 2024

Description

Small improvements in readability of Style Transfer. Please double check it, as I haven't run the whole style transfer.

Remove magic numbers
Make number self-explainable
Remove implicit cast
Comment on lines 59 to 61
NSNumber* numInputs = [module getNumberOfInputs];
NSLog(@"RnExecutorch: %@", [module getNumberOfInputs]);
for (NSUInteger i = 0; i < [[module getNumberOfInputs] intValue]; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also get rid of that for loops that only log stuff there? They don't seem necessary, thank you for contributing!:D

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'm wondering if this PR is still needed as there is a PR with style transfer using OpenCV

Remove unused logging
@mkopcins
Copy link
Collaborator

This is a very nice work with great attention to details. However I will close this PR, because those files were supposed to be changed from the start (perhaps shouldn't have been merged in the first place, they were only to ease further development). We can implement suggested changes in the refactored code for style transfer :)

@mkopcins mkopcins closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants