Spaces:
Paused
Paused
Hugging Face Setup Guide
π Setting Up Hugging Face Authentication
1. Get Your HF Token
- Go to https://huggingface.co/settings/tokens
- Create a new token with Write permissions
- Copy the token (starts with
hf_...)
2. Set Environment Variables
Option A: In Hugging Face Spaces (Recommended)
- Go to your Space settings
- Add these secrets:
HF_TOKEN: Your Hugging Face tokenHF_USERNAME: Your Hugging Face username (e.g., "Stylique")
Option B: Local Development
export HF_TOKEN="hf_your_token_here"
export HF_USERNAME="your_username"
3. Verify Setup
source setup_hf.sh
π What Happens Next
Once environment variables are set, the system will automatically:
- β Authenticate with Hugging Face
- β
Upload trained models to
{HF_USERNAME}/dressify-models - β
Upload datasets to
{HF_USERNAME}/Dressify-Helper - β Create repositories if they don't exist
π Security Notes
- Never commit tokens to git
- Use environment variables or HF Spaces secrets
- Tokens are automatically masked in logs
π Repository Structure
After successful upload:
{HF_USERNAME}/dressify-models/
βββ resnet_item_embedder_best.pth
βββ vit_outfit_model_best.pth
βββ resnet_metrics.json
βββ vit_metrics.json
{HF_USERNAME}/Dressify-Helper/
βββ train.json
βββ valid.json
βββ test.json
βββ outfit_triplets_train.json
βββ outfit_triplets_valid.json
βββ outfit_triplets_test.json