-
Notifications
You must be signed in to change notification settings - Fork 4
CIFAR-10 evaluation #12
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
Open
rohinmshah
wants to merge
144
commits into
master
Choose a base branch
from
cifar_eval
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
144 commits
Select commit
Hold shift + click to select a range
4424bda
Initial implementation of CIFAR evaluation, currently runs but haven'…
rohinmshah 53d2f2e
Initial implementation of CIFAR evaluation, currently runs but haven'…
rohinmshah 1fc4d9a
Add support for GPU training, miscellaneous improvements
rohinmshah 5f24dd9
Pull out model training code into its own function
rohinmshah 96dc990
Compatibility with new learn interface
rohinmshah 513b530
Merge master
rohinmshah 7ff2804
Merge branch 'master' into cifar_eval
rohinmshah 89a30dc
Implement the correct augmentations for SimCLR on CIFAR-10
rohinmshah db49e92
Changes to optimizers and learning rates to be more in line with SimCLR
rohinmshah c29cf52
Add momentum to optimizer
rohinmshah 66ae3d5
Fix indentation bug
rohinmshah 8303ca5
Address comments on PR, except for LinearWarmupCosine documentation, …
rohinmshah 0d1622f
Merge branch 'master' into cifar_eval
rohinmshah 474b6f9
Rewrote LinearWarmupCosine to be more understandable
rohinmshah 375e76f
Merge
rohinmshah 4950c8e
Merge
rohinmshah 294d436
Miscellaneous small fixes
rohinmshah 9cae4a7
Make things more parameterizable
rohinmshah 89d5864
Update .gitignore
RPC2 51dad87
Merge branch 'master' into cifar_eval
RPC2 3fef45e
update model setting
RPC2 a93d017
Make CIFAR runnable for RepL!
RPC2 f2fc56b
classification + cleanup
RPC2 988ec4a
some cleanup
RPC2 fa647ad
Hardcode warmup_epochs to 2
decodyng 8fe17b5
Import time
decodyng 95a01d0
Make testloader exist
decodyng 6869714
Is RepL training?
decodyng d977571
Hardcode dataset length
decodyng 574d8fc
Remove excess logging
decodyng 45b285a
Remove Cosine Annealing to be consistent with repo
decodyng f0b8f71
Put their loss in for ours
decodyng fc10cd4
Comment otu their losss which is nan for some reason
decodyng 97bf11a
Add breakpoint
decodyng c22329f
Fix config name
decodyng 55963e0
Switch to running their loss
decodyng b51f49c
Add another breakpoint
decodyng 2c3b69a
Fix numpy call
decodyng 9e6c792
What if you used their loss but normalized first to maybe avoid infin…
decodyng 09254b1
Add ability to do K means evaluation
decodyng d464fca
Accidentally called encoder.encoder
decodyng 44e6213
double-import tqdm
decodyng a35ba0a
Maybe avoid needing traj_info
decodyng 8033682
Remove unused feature, out
decodyng 720c15d
Allow passing in a pretrained model
decodyng 382e9fd
Make it easier to switch between our loss and repo loss
decodyng 2f221c0
Normalize our features before using them in KNN
decodyng 81932ee
Unbreak torch.nn.functional import
decodyng 5724cef
Examine image scale before augmentations
decodyng 8592c66
Explicitly use their model class
decodyng 6bda628
Use SimCLR model for encoder at least
decodyng d1463f5
No longer expect a tuple in KNN code
decodyng 767511d
Modify decoder kwargs to be closer to SimCLR
decodyng 6e55630
Add comma back in
decodyng 0fc1975
Add code to save images out
decodyng 592a278
Remove image prepreprocessing to avoid double-normalizing
decodyng fc7388d
Add more image saving and warnings
decodyng 56ebd6f
Add more image saving and warnings
decodyng 618f4ea
Save out more images
decodyng 8b6f75a
Try to get augmentations to match SimCLR
decodyng 01b6a6a
Still convert to PILImage
decodyng c5aee28
Add back numpy conversion without x255
decodyng 94f0b9a
Add 255x back in
decodyng be29ef9
Normalize in the same way as SimCLR
decodyng 9270bbc
For some reason getting a dimension error
decodyng 7039fbf
Go back to other normalization
decodyng cc24d47
Cleanup and final push for the evening
decodyng d201c9a
Switch from bilinear to bicubic interpolation
decodyng fda28dd
No longer convert to numpy array before PIL image
decodyng 292df58
Transpose numpy array so PILImage has the right shape:
decodyng 5bdada6
Breakpoint before augmentation
8b7ac9e
Merge branch 'cifar_eval' of github.com:HumanCompatibleAI/il-represen…
40d8e7a
Uniform_ contexts and target
decodyng 28cdd83
Merge branch 'cifar_eval' of github.com:HumanCompatibleAI/il-represen…
43c2f57
log every interval
decodyng 0049873
Merge branch 'cifar_eval' of github.com:HumanCompatibleAI/il-represen…
d5bdbb0
Make zs uniform
decodyng 90fb7c0
Merge branch 'cifar_eval' of github.com:HumanCompatibleAI/il-represen…
4446621
Set seed to 10
decodyng 1b16a55
Merge branch 'cifar_eval' of github.com:HumanCompatibleAI/il-represen…
9884d1b
Add seed back in
432c7b0
No longer have random zs
1224059
Remove breakpoint
e6bff32
Remove random seed
decodyng 877ecc5
Examine distribution after encoder
decodyng fc9dad2
No longer randomize images
decodyng 7bbb153
Remove extraneous breakpoint
decodyng cb06dbc
Add parameter check to repl
decodyng 71e129f
Swap our data loader for theirs
decodyng 5553d2a
Add dataloader back in and add breakpoint
decodyng 294bab4
Try to get .next() to work
decodyng 2884db6
Swap in new contexts/targets temporarily
decodyng 9eb90b9
If we double augment that should break things... right?
decodyng 31864d6
Switch back to using our data loader
decodyng 502c223
Skip the decoding step entirely
decodyng c4096a1
Don't calculate norm on decoder while we're testing out not using it
decodyng 3dd1e80
Remove decoder from _calculate_norms
decodyng f2645d5
try to use direct network output instead of a distribution
29a9083
return to using multivariate normal and adjust loss and temperature
31d04e5
test linear head
77afc23
Try to fully use SimCLR repo's linear evaluation code
RPC2 130c127
select test method
RPC2 869f3bd
Add comment
decodyng feffcf0
Merge branch 'cifar_eval' of github.com:HumanCompatibleAI/il-represen…
decodyng 1a537bf
Specifically ablate change to decoder
decodyng f769190
Switch ReLu back to be after BatchNorm
decodyng 5d2ff3f
Remove breakpoint on Github
decodyng ea8deae
config for running few trajs
RPC2 7319c1e
Merge branch 'master' into gcp-cyn
RPC2 6a2842e
Update chain_configs.py
RPC2 93783a1
Finding a good gpu number balance
RPC2 4c1c2b8
Add SimCLR model to default SimCLR settings
RPC2 01473d8
Try to use 3e-4 lr for SimCLR repl
RPC2 05805a0
Merge branch 'gcp-cyn' into cifar_eval
RPC2 701c691
update config
RPC2 17af15f
comment out context saving code
RPC2 766b160
Try augmenting with SimCLR default
RPC2 a398ed8
adjust augmenter
ae814c3
Try to use multiple GPUs
RPC2 2491d70
Add a script for running simclr
d992c52
adjust decoder input dim
RPC2 111a97d
Merge branch 'cifar_eval' of https://github.com/HumanCompatibleAI/il-…
RPC2 8d4ebd5
Adjust decoder shape and normalization
872101b
Update run_il.sh for long dmc runs with few trajs
56c724e
Merge branch 'gcp-cyn' of ssh://github.com/HumanCompatibleAI/il-repre…
3834b88
Setting up loading procgen dataset
RPC2 d57fcbf
Merge branch 'procgen' of github.com:HumanCompatibleAI/il-representat…
1f2a6ad
Merge branch 'gcp-cyn' into procgen
RPC2 c679534
Merge branch 'procgen' of github.com:HumanCompatibleAI/il-representat…
2c70645
Adding support for procgen (loading env)
2f0659a
Set Procgen env names
fe9558e
Update loading procgen envs
dcd44ca
Maybe we don't need next_obs?
e236df2
Env wrapper is already handled by Procgen
9faea2d
More clean up
19d1dc3
Add framestack
7e67b54
Adjust encoder network channel
RPC2 0234acf
Merge branch 'procgen' into cifar_eval
RPC2 f2c9be2
Update simclr running script
ad9a9d1
Try a smaller network
RPC2 4365e02
See if it can run end to end
RPC2 5eb9283
Update encoder kwargs
RPC2 5fdf57a
Current script to train simclr as repl
9983123
Use default augmentation
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
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.
Uh oh!
There was an error while loading. Please reload this page.