-
Notifications
You must be signed in to change notification settings - Fork 542
Optim-wip: Fix failing tests, model download link, & more #656
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
d600559
Fix the Inception5h model's download link
ProGamerGov 8612fee
Fix black error
ProGamerGov d31d60d
Ensure history has no gradient
ProGamerGov bd3c7fe
Remove .cpu() to improve optimization speed
ProGamerGov bbebf22
Temporarily disable nightly build tests affected by pytorch/pytorch#5…
ProGamerGov 0fb9eb5
Fix flake8 error
ProGamerGov 7c453e0
Remove ImageTensor test skips & add new tests
ProGamerGov 5d0d143
Fix ImageTensor __new__ list test
ProGamerGov 50455bf
Fix NaturalImage device bug
ProGamerGov c9ece95
Set decorrelate_init default back to True
ProGamerGov 4bd8e5b
Check for presence of Pillow / PIL library in ImageTensor applicable …
ProGamerGov 71a370d
Update Conda installation script to latest version
ProGamerGov e7fcdc0
Add SkipLayer to models __init__
ProGamerGov 015890e
Make SkipLayer work if there are any additional init or forward argum…
ProGamerGov 1bcac93
Minor correction to optimize's loss summarizer setup
ProGamerGov 811a269
Fix _rand_select bug
ProGamerGov 1f2d421
Increase number of steps in optimization test
ProGamerGov 8227b79
Fix FFTImage support for images with odd width values
ProGamerGov f10fa86
Fix test_rfft2d_freqs & add more SkipLayer tests
ProGamerGov 9157524
Remove duplicate imports
ProGamerGov 6359321
Make it possible to load RGBA images with ImageTensor
ProGamerGov e4a1310
Remove unused line: 'h, w = self.size'
ProGamerGov 9ca0f9b
Change NumPy rfft2d_freqs to match PyTorch version
ProGamerGov 681e3ee
Fix PCA ChannelReducer test
ProGamerGov 8aaf1a2
Fix failing nodejs
ProGamerGov 27145c7
Resolve the ToRGB device issue with NaturalImage
ProGamerGov 15a7db6
Fix no color decorrelation test
ProGamerGov 02fc2d7
Add ToDos and better SkipLayer docs
ProGamerGov 7f078f9
Fix lint and FFTImage init device
ProGamerGov d9b4620
Fix NaturalImage device issues
ProGamerGov 5aaece3
Improve NaturalImage fix
ProGamerGov c72adc5
Remove redundant NaturalImage device fix
ProGamerGov 1eae61c
Improve SkipLayer documentation
ProGamerGov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 are the args and kwargs passed if they are not used ? Are there any real scenarios that we need it ? Is this because we replace ReLU with SkipLayer ?
I could imagine, for example, that x is a tuple of tensors and we would need to return that tuple.
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.
I made the change because users may have models using
activ(inplace=False)
oractiv(False)
whereactiv = torch.nn.ReLU
. This is same way thattorch.nn.Identity
works: https://pytorch.org/docs/stable/generated/torch.nn.Identity.htmlI'll add the type hint for tuples of tensors.
Uh oh!
There was an error while loading. Please reload this page.
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.
I've improved the documentation, added the type hints, and also provided a link to the
nn.Identity
class!