8000 CoreLocker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
View CoreLocker's full-sized avatar

Block or report CoreLocker

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
CoreLocker/README.md

CoreLocker: Neuron-level Usage Control

This is a demo implementation for the paper [CoreLocker: Neuron-level Usage Control]

Project Structure

CoreLocker
├── README.md
├── corelock.py
├── extractor.py
└── models
    ├── __init__.py
    ├── channel_selection.py
    ├── densenet.py
    └── preresnet.py

To split the target model:

python corelock.py split --model <path_to_model> --ratio <key_ratio> --arch <architecture> --save ./test_output

Enable --config to observe the configeration post extraction.

To patch the model:

python corelock.py recover --model test_output/keyed_model.pth.tar --key test_output/key.pth.tar --arch <architecture> --save <save_path>

Popular repositories Loading

  1. CoreLocker CoreLocker Public

    Python 2 1

0