Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/automatic1111/torchdeepdanbooru
Pure pytorch implementation of DeepDanbooru
https://github.com/automatic1111/torchdeepdanbooru
Last synced: about 1 month ago
JSON representation
Pure pytorch implementation of DeepDanbooru
- Host: GitHub
- URL: https://github.com/automatic1111/torchdeepdanbooru
- Owner: AUTOMATIC1111
- License: mit
- Created: 2022-11-20T09:27:39.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T12:20:17.000Z (10 months ago)
- Last Synced: 2024-12-10T08:50:55.447Z (about 2 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 126
- Watchers: 5
- Forks: 32
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a pure pytorch implementation of DeepDanbooru neural network: https://github.com/KichangKim/DeepDanbooru/.
There is no code to export weights from an existing model yet, so you are stuck with the only checkpoint that I will upload to releases.
Use example is in test.py: basically just load the checkpoint as usual using `model.load_state_dict()`, and use `model.tags` to get textual represntation of model's `forward` output.
test.py loads checkpoint from `model-resnet_custom_v3.pt`, image from `test.jpg`, and prints tags to stdout.I used a modified version of onnx-pytorch librtary to write this.
The modification is related to fixing incorrect padding code for conv layers.
Because my modification only works for Conv2d and the original code works with all dimensionalities, I won't be releasing the modifications.