Spaces:
Runtime error
Runtime error
Commit ·
fbe03e2
1
Parent(s): a10635a
Add weights option to BiRefNet trained in all different settings.
Browse filesFiles changed (4)
49 unmodified lines505152535455565734 unmodified lines9293949596979849 unmodified lines'DIS-TR_TEs': 'BiRefNet-DIS5K-TR_TEs'}# def predict(image_1, image_2):# images = [image_1, image_2]@spaces.GPUdef predict(image, resolution, weights_file):global weights_path34 unmodified linesreturn image, image_preds[0]examples = [[_] for _ in glob('materials/examples/*')][:]# Add the option of resolution in a text box.for idx_example, example in enumerate(examples):49 unmodified lines5051525354555634 unmodified lines9192939495969749 unmodified lines'DIS-TR_TEs': 'BiRefNet-DIS5K-TR_TEs'}@spaces.GPUdef predict(image, resolution, weights_file):global weights_path34 unmodified linesreturn image, image_preds[0]examples = [[_] for _ in glob('examples/*')][:]# Add the option of resolution in a text box.for idx_example, example in enumerate(examples):
app.py+2-3
materials/examples/Helicopter.jpg → examples/Helicopter.jpgRenamed

Large File Pointer Details
- SHA256: 087aa9cb63a3a9c644be02f576db4ffcc113a1031d55107d6372bc67d8e09aed
- Pointer size: 131 Bytes
- Size of remote file: 639 kB

Large File Pointer Details
- SHA256: 087aa9cb63a3a9c644be02f576db4ffcc113a1031d55107d6372bc67d8e09aed
- Pointer size: 131 Bytes
- Size of remote file: 639 kB
materials/examples/Jewelry.jpg → examples/Jewelry.jpgRenamed

Large File Pointer Details
- SHA256: 7ac3b5f61ca2d282901d0932921f500b65344a0f0e91b3dc81599cf39c1d7262
- Pointer size: 131 Bytes
- Size of remote file: 986 kB

Large File Pointer Details
- SHA256: 7ac3b5f61ca2d282901d0932921f500b65344a0f0e91b3dc81599cf39c1d7262
- Pointer size: 131 Bytes
- Size of remote file: 986 kB
materials/examples/Windmill.jpg → examples/Windmill.jpgRenamed

Large File Pointer Details
- SHA256: cb2eada821fc6eb5ea9d9a2b1c3134111341116ce1c674a9c8499d8c9ab41320
- Pointer size: 131 Bytes
- Size of remote file: 477 kB

Large File Pointer Details
- SHA256: cb2eada821fc6eb5ea9d9a2b1c3134111341116ce1c674a9c8499d8c9ab41320
- Pointer size: 131 Bytes
- Size of remote file: 477 kB