{"id":13716621,"url":"https://github.com/greentfrapp/lucent","last_synced_at":"2025-05-07T06:30:36.049Z","repository":{"id":45296806,"uuid":"262630066","full_name":"greentfrapp/lucent","owner":"greentfrapp","description":"Lucid library adapted for PyTorch","archived":false,"fork":false,"pushed_at":"2025-03-21T11:01:03.000Z","size":40439,"stargazers_count":623,"open_issues_count":21,"forks_count":89,"subscribers_count":15,"default_branch":"dev","last_synced_at":"2025-04-20T01:07:06.607Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greentfrapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-05-09T18:07:01.000Z","updated_at":"2025-04-19T04:13:56.000Z","dependencies_parsed_at":"2023-02-18T23:15:34.409Z","dependency_job_id":"d33744db-43a2-4fdd-a5cf-14dac9c581bf","html_url":"https://github.com/greentfrapp/lucent","commit_stats":{"total_commits":154,"total_committers":8,"mean_commits":19.25,"dds":0.1428571428571429,"last_synced_commit":"6123386ceb1dd5830724d6519bb6d8eb9fc542a0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentfrapp%2Flucent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentfrapp%2Flucent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentfrapp%2Flucent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentfrapp%2Flucent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greentfrapp","download_url":"https://codeload.github.com/greentfrapp/lucent/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826609,"owners_count":21810147,"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-08-03T00:01:12.568Z","updated_at":"2025-05-07T06:30:35.427Z","avatar_url":"https://github.com/greentfrapp.png","language":"Python","readme":"![](https://github.com/greentfrapp/lucent/raw/master/images/lucent_header.jpg)\n\n# Lucent\n\n\u003c!--*It's still magic even if you know how it's done. GNU Terry Pratchett*--\u003e\n\n[![Travis build status](https://img.shields.io/travis/greentfrapp/lucent.svg)](https://travis-ci.org/greentfrapp/lucent)\n[![Code coverage](https://img.shields.io/coveralls/github/greentfrapp/lucent.svg)](https://coveralls.io/github/greentfrapp/lucent)\n\n*PyTorch + Lucid = Lucent*\n\nThe wonderful [Lucid](https://github.com/tensorflow/lucid) library adapted for the wonderful PyTorch!\n\n**Lucent is not affiliated with Lucid or OpenAI's Clarity team, although we would love to be!**\nCredit is due to the original Lucid authors, we merely adapted the code for PyTorch and we take the blame for all issues and bugs found here.\n\n# Usage\n\nLucent is still in pre-alpha phase and can be installed locally with the following command:\n\n```\npip install torch-lucent\n```\n\nIn the spirit of Lucid, get up and running with Lucent immediately, thanks to Google's [Colab](https://colab.research.google.com/notebooks/welcome.ipynb)! \n\nYou can also clone this repository and run the notebooks locally with [Jupyter](http://jupyter.org/install.html).\n\n## Quickstart\n\n```python\nimport torch\n\nfrom lucent.optvis import render\nfrom lucent.modelzoo import inceptionv1\n\ndevice = torch.device(\"cuda:0\" if torch.cuda.is_available() else \"cpu\")\nmodel = inceptionv1(pretrained=True)\nmodel.to(device).eval()\n\nrender.render_vis(model, \"mixed4a:476\")\n```\n\n## Tutorials\n\n\u003ca href=\"https://colab.research.google.com/github/greentfrapp/lucent-notebooks/blob/master/notebooks/tutorial.ipynb\"\u003e\n\u003cimg src=\"https://github.com/greentfrapp/lucent-notebooks/raw/master/images/tutorial_card.jpg\" width=\"500\" alt=\"\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://colab.research.google.com/github/greentfrapp/lucent-notebooks/blob/master/notebooks/modelzoo.ipynb\"\u003e\u003cimg src=\"https://github.com/greentfrapp/lucent-notebooks/raw/master/images/modelzoo_card.jpg\" width=\"500\" alt=\"\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n## Other Notebooks\n\nHere, we have tried to recreate some of the Lucid notebooks! You can also check out the [lucent-notebooks](https://github.com/greentfrapp/lucent-notebooks) repo to clone all the notebooks.\n\n\u003ca href=\"https://colab.research.google.com/github/greentfrapp/lucent-notebooks/blob/master/notebooks/diversity.ipynb\"\u003e\u003cimg src=\"https://github.com/greentfrapp/lucent-notebooks/raw/master/images/diversity_card.jpg\" width=\"500\" alt=\"\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://colab.research.google.com/github/greentfrapp/lucent-notebooks/blob/master/notebooks/neuron_interaction.ipynb\"\u003e\u003cimg src=\"https://github.com/greentfrapp/lucent-notebooks/raw/master/images/neuron_interaction_card.jpg\" width=\"500\" alt=\"\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://colab.research.google.com/github/greentfrapp/lucent-notebooks/blob/master/notebooks/feature_inversion.ipynb\"\u003e\n\u003cimg src=\"https://github.com/greentfrapp/lucent-notebooks/raw/master/images/feature_inversion_card.jpg\" width=\"500\" alt=\"\"\u003e\u003c/img\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://colab.research.google.com/github/greentfrapp/lucent-notebooks/blob/master/notebooks/style_transfer.ipynb\"\u003e\n\u003cimg src=\"https://github.com/greentfrapp/lucent-notebooks/raw/master/images/style_transfer_card.jpg\" width=\"500\" alt=\"\"\u003e\u003c/img\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://colab.research.google.com/github/greentfrapp/lucent-notebooks/blob/master/notebooks/activation_grids.ipynb\"\u003e\n\u003cimg src=\"https://github.com/greentfrapp/lucent-notebooks/raw/master/images/activation_grids_card.jpg\" width=\"500\" alt=\"\"\u003e\u003c/img\u003e\n\u003c/a\u003e\n\n# Recommended Readings\n\n* [Feature Visualization](https://distill.pub/2017/feature-visualization/)\n* [The Building Blocks of Interpretability](https://distill.pub/2018/building-blocks/)\n* [Using Artiﬁcial Intelligence to Augment Human Intelligence](https://distill.pub/2017/aia/)\n* [Visualizing Representations: Deep Learning and Human Beings](http://colah.github.io/posts/2015-01-Visualizing-Representations/)\n* [Differentiable Image Parameterizations](https://distill.pub/2018/differentiable-parameterizations/)\n* [Activation Atlas](https://distill.pub/2019/activation-atlas/)\n\n## Related Talks\n* [Lessons from a year of Distill ML Research](https://www.youtube.com/watch?v=jlZsgUZaIyY) (Shan Carter, OpenVisConf)\n* [Machine Learning for Visualization](https://www.youtube.com/watch?v=6n-kCYn0zxU) (Ian Johnson, OpenVisConf)\n\n# Slack\n\nCheck out `#proj-lucid` and `#circuits` on the [Distill slack](http://slack.distill.pub)!\n\n# Additional Information\n\n## License and Disclaimer\n\nYou may use this software under the Apache 2.0 License. See [LICENSE](https://github.com/greentfrapp/lucent/blob/master/LICENSE).\n","funding_links":[],"categories":["Pytorch \u0026 related libraries｜Pytorch \u0026 相关库","Python","Pytorch \u0026 related libraries"],"sub_categories":["CV｜计算机视觉:","CV:","General-Purpose Machine Learning"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreentfrapp%2Flucent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreentfrapp%2Flucent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreentfrapp%2Flucent/lists"}