yusufcakmak commited on
Commit
531cdea
·
verified ·
1 Parent(s): 6eb07ba

feat: test upload - Trendyol DinoV2 Product Similarity and Retrieval Embedding Model

Browse files

🧪 Test Upload Details:
- Personal account testing before company publication
- Architecture: ConvNeXt-Base + ArcFace loss
- Embedding dimension: 256
- Task: Product similarity and retrieval

📁 Repository Contents:
- Model weights in safetensors format
- Complete model card with usage examples
- Apache 2.0 license
- Demo notebook for inference

🔒 Security: Scanned and validated
📋 RFC Compliance: Ready for company publication

Test upload by: Personal Account

README.md CHANGED
@@ -88,28 +88,6 @@ The model uses a specific preprocessing pipeline that's crucial for good perform
88
  6. **ToTensor**: Convert to PyTorch tensor
89
  7. **Normalize**: ImageNet normalization (mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
90
 
91
- ### Using with AutoModel and AutoImageProcessor
92
-
93
- ```python
94
- from transformers import AutoModel, AutoImageProcessor
95
-
96
- # Load from Hugging Face Hub
97
- model = AutoModel.from_pretrained("Trendyol/trendyol-dino-v2-ecommerce-256d")
98
- processor = AutoImageProcessor.from_pretrained("Trendyol/trendyol-dino-v2-ecommerce-256d")
99
-
100
- # Full inference pipeline
101
- import torch
102
- from PIL import Image
103
-
104
- image = Image.open('your_image.jpg')
105
- inputs = processor(images=image, return_tensors="pt")
106
-
107
- with torch.no_grad():
108
- outputs = model(**inputs)
109
- embeddings = outputs.last_hidden_state # Shape: [1, 256]
110
-
111
- print("Embedding shape:", embeddings.shape)
112
- ```
113
 
114
  ## Installation
115
 
 
88
  6. **ToTensor**: Convert to PyTorch tensor
89
  7. **Normalize**: ImageNet normalization (mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
  ## Installation
93
 
__pycache__/modeling_trendyol_dinov2.cpython-312.pyc CHANGED
Binary files a/__pycache__/modeling_trendyol_dinov2.cpython-312.pyc and b/__pycache__/modeling_trendyol_dinov2.cpython-312.pyc differ