Instructions to use RedRocket/JointTaggerProject with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use RedRocket/JointTaggerProject with timm:
import timm model = timm.create_model("hf_hub:RedRocket/JointTaggerProject", pretrained=True) - Notebooks
- Google Colab
- Kaggle
fix alpha
Browse files
JTP_PILOT/inference_gradio.py
CHANGED
|
@@ -137,7 +137,7 @@ sorted_tag_score = {}
|
|
| 137 |
|
| 138 |
def run_classifier(image, threshold):
|
| 139 |
global sorted_tag_score
|
| 140 |
-
img = image.convert('
|
| 141 |
tensor = transform(img).unsqueeze(0)
|
| 142 |
|
| 143 |
if torch.cuda.is_available():
|
|
|
|
| 137 |
|
| 138 |
def run_classifier(image, threshold):
|
| 139 |
global sorted_tag_score
|
| 140 |
+
img = image.convert('RGBA')
|
| 141 |
tensor = transform(img).unsqueeze(0)
|
| 142 |
|
| 143 |
if torch.cuda.is_available():
|