Instructions to use p1atdev/MangaLineExtraction-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use p1atdev/MangaLineExtraction-hf with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-image" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-image", model="p1atdev/MangaLineExtraction-hf", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("p1atdev/MangaLineExtraction-hf", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signaturethis will add a code snippet to the readme file (since custom pipelines are not a thing yet and my pr about adding `push_to_hub` method to pipelines is still on review for the past 4 months at https://github.com/huggingface/transformers/pull/29172) ============================ I did not mention that they should install loadimg in the readme via ``` pip install loadimg ``` because i am not sure if you want to keep it or not, loadimg is a python package that I created to load images of any type and convert them, it currently supports pil, numpy, str (path), str urls (including normal urls, drive urls, github urls, and huggingface urls ), if you chose to remove loadimg, don't forget to directly update your file at `MangaPipe.py`, there are no other changes required so it should be straight forward. happy coding ✨✨0ac40ca -
add pipeline (#1)
Verified signature- add pipeline (6afbcc3d3c6abb49de3c4d69544aa3b4c0884f7c) Co-authored-by: LAin <not-lain@users.noreply.huggingface.co>1e008dd
-
Update README.md
Verified signatureb504e38 -
Update README.md
Verified signature9cbe30a -
Update README.md
Verified signature02ff956 -
Update README.md
Verified signature1184c17 -
Update README.md
Verified signaturefbe4350 -
Upload 2 files
Verified signature49d60fd -
Create images/.gitkeep
Verified signature091e34d -
Update README.md
Verified signature12821c3 -
Update image_processing_mle.py
Verified signaturec89293a -
Rename image_processor_mle.py to image_processing_mle.py
Verified signature9e2f344 -
Update preprocessor_config.json
Verified signature43a178d -
Upload 2 files
Verified signature5495955 -
Upload processor
Verified signaturef77624e -
Update README.md
Verified signaturee995f9b -
Update config.json
Verified signaturec38fd2f -
Upload 2 files
Verified signature9844a09 -
Upload MLEForAnimeLineExtraction
Verified signature3ae75a5 -
Upload MLEForAnimeLineExtraction
Verified signatureee0c625 -
initial commit
Verified signatureb12ace9