# Dataset Version Export करें

आप किसी भी समय Roboflow से डेटा एक्सपोर्ट कर सकते हैं। आप Roboflow वेब इंटरफ़ेस या हमारे Python package का उपयोग करके डेटा एक्सपोर्ट कर सकते हैं।

डेटा एक्सपोर्ट करने के लिए, पहले Roboflow dashboard में dataset version जनरेट करें। आप ऐसा अपने project से जुड़े "Versions" पेज पर कर सकते हैं।

एक dataset जनरेट करने के बाद, अपने dataset version के आगे "Export" पर क्लिक करें:

<figure><img src="/files/5c92f67bcd75bf1814a63e919f897f2dc4a25906" alt="" width="563"><figcaption></figcaption></figure>

आप अपने डेटा को कई तरह के formats में डाउनलोड कर सकते हैं। समर्थित export formats की पूरी सूची हमारे के "Export" tab में देख सकते हैं [formats directory](https://roboflow.com/formats).

एक export format चुनने के बाद, आप डेटा को या तो एक `.zip` file के रूप में डाउनलोड करना चुन सकते हैं, या एक `curl` link के रूप में command line से डाउनलोड कर सकते हैं।

![अपने device पर एक .zip folder में export करना।](/files/48ed20cce33410330466ef09a1937ab685d3cb44)

{% hint style="warning" %}
*The `curl` और Python code में आपके account के लिए unique एक private key होगी। इस key को साझा न करें!*
{% endhint %}

!["Continue" चुनने के बाद दिखने वाली "show download code" वाली window।](/files/4765e4ec9ff2728b2a16d7f394f79751e549919a)

## Notes

Dataset versions को computer vision models के training data के रूप में उपयोग के लिए डिज़ाइन किया गया है। इसलिए, हम models के training experience और performance को बेहतर बनाने के लिए कुछ optimizations करते हैं।

### Image Compression

Training धीमी न पड़े, इसके लिए हम images को ऐसे स्तर पर compress करते हैं जो training speed और पर्याप्त model performance के लिए आवश्यक resolution के बीच संतुलन बनाए रखे।

यदि आप original quality image डाउनलोड करना चाहते हैं, तो आप अपने dataset में किसी image पर क्लिक करके और "Download Image" चुनकर ऐसा कर सकते हैं।

<figure><img src="/files/fd2320eed723d6e1bbe5fd288474a9236ecd68f9" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
आप अपनी images तक programmatically भी पहुंच सकते हैं [Image Details API](/developer/rest-api/manage-images/get-details-about-an-image.md). The `image.urls.original` property original quality image का link बताती है।
{% endhint %}

यदि आप अपने पूरे dataset की original quality images डाउनलोड करना चाहते हैं, तो आप इसका उपयोग करके ऐसा कर सकते हैं [Image Search API](/developer/rest-api/manage-images/get-details-about-an-image.md). इसे करने के लिए आप यह code snippet उपयोग कर सकते हैं:

```python
import os
import requests
from roboflow import Roboflow

rf = Roboflow("YOUR_ROBOFLOW_API_KEY")

project = rf.project("my-dataset-id")

records = []

for page in project.search_all(
    offset = 0,
    limit = 100,
    in_dataset = True,
    batch = False,
    fields = ["id", "name", "owner"],
):
    records.extend(page)

print(f"{len(records)} images found")

for record in records:
        base_url = "https://source.roboflow.com"
        url = f"{base_url}/{record['owner']}/{record['id']}/original.jpg"

        try:
            response = requests.get(url)
            response.raise_for_status()

            # अस्थायी directory में सेव करें
            save_path = os.path.join('temp_images', record['name'])
            with open(save_path, 'wb') as f:
                f.write(response.content)

            print(f"Downloaded: {record['name']}")

        except requests.exceptions.RequestException as e:
            print(f"Image डाउनलोड करने में त्रुटि: {e}")

```

### स्वीकार्य वर्ण

Training के दौरान समस्याएँ न आएँ, इसके लिए हम upload/import और export दोनों पर class names को sanitize करते हैं। Export पर, हम निम्न करते हैं:

* Class names को ASCII में बदला जाता है
  * जहाँ संभव हो, वर्णों को anglicized किया जाता है (उदा: `ü` को `u`)
  * अन्यथा, उन्हें एक dash (`-`)

{% hint style="info" %}
[Class name sanitization upload के दौरान भी होती है](/roboflow/roboflow-hi/datasets/adding-data.md#class-name-sanitization)
{% endhint %}

### Python Package के साथ Export करें

आप Python package के साथ versions जनरेट भी कर सकते हैं और datasets export भी कर सकते हैं।

{% content-ref url="/spaces/e5GEiPeDoFksvZv1vH3A/pages/0zziwbyAo255wXPCoF3O" %}
[Create a Dataset Version](/developer/python-sdk/create-a-dataset-version.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-hi/datasets/dataset-versions/exporting-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
