{"id":19382911,"url":"https://github.com/locuslab/intermediate_robustness","last_synced_at":"2025-04-23T20:32:32.908Z","repository":{"id":96318653,"uuid":"435701783","full_name":"locuslab/intermediate_robustness","owner":"locuslab","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-07T01:30:18.000Z","size":17,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T20:11:28.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/locuslab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-07T01:16:52.000Z","updated_at":"2024-01-04T17:03:55.000Z","dependencies_parsed_at":"2023-03-30T20:48:06.911Z","dependency_job_id":null,"html_url":"https://github.com/locuslab/intermediate_robustness","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locuslab%2Fintermediate_robustness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locuslab%2Fintermediate_robustness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locuslab%2Fintermediate_robustness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locuslab%2Fintermediate_robustness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/locuslab","download_url":"https://codeload.github.com/locuslab/intermediate_robustness/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250509874,"owners_count":21442514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T09:23:50.373Z","updated_at":"2025-04-23T20:32:32.902Z","avatar_url":"https://github.com/locuslab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robustness between the worst and average case \n\n*A repository that implements intermediate robustness training and evaluation from the NeurIPS 2021 paper [Robustness between the worst and average case](https://proceedings.neurips.cc/paper/2021/file/ea4c796cccfc3899b5f9ae2874237c20-Paper.pdf). \nCreated by [Leslie Rice](https://leslierice1.github.io/), [Anna Bair](https://annaebair.github.io/), [Huan Zhang](https://www.huan-zhang.com/) and [Zico Kolter](http://zicokolter.com).*\n\n## Installation and usage\n- To install all required packages run: `pip install -r requirements.txt`.\n- Pretrained model weights can be downloaded [here](https://drive.google.com/drive/folders/1YCFXzdx2dGjmQGU30v6CRhUORjQsjHKV?usp=sharing). \n- To train (l_infty perturbations), run `python train.py -c {path_to_training_config_file}.json`. \n- To evaluate (l_infty perturbations), run `python train.py -c {path_to_evaluation_config_file}.json`. \n- To train (spatial transformations), run `python train_discrete.py -c {path_to_training_config_file}.json`.  \n- To evaluate (spatial transformations), run `python eval_discrete.py --checkpoint {path_to_model_checkpoint}.pth`.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocuslab%2Fintermediate_robustness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocuslab%2Fintermediate_robustness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocuslab%2Fintermediate_robustness/lists"}