# How to access and remodel a dataset that has already been annotated with prodigy for images ?

**URL:** <https://support.prodi.gy/t/how-to-access-and-remodel-a-dataset-that-has-already-been-annotated-with-prodigy-for-images/6070>\
**Category:** Uncategorized\
**Tags:** image\
**Created:** [November 3, 2022, 3:26pm UTC](https://support.prodi.gy/t/how-to-access-and-remodel-a-dataset-that-has-already-been-annotated-with-prodigy-for-images/6070 "2022-11-03T15:26:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [November 3, 2022, 6:36pm UTC](https://support.prodi.gy/t/how-to-access-and-remodel-a-dataset-that-has-already-been-annotated-with-prodigy-for-images/6070/2 "2022-11-03T18:36:43Z")

</div>

hi @Mat!

Thanks for your question and welcome to the Prodigy community 👋

> [@Mat](#):
>
> How to access and remodel a dataset that has already been annotated with prodigy for images

Have you seen this post:

> [@prodigy mark: images from JSONL not showing](https://support.prodi.gy/t/prodigy-mark-images-from-jsonl-not-showing/2879/2):
>
> Hi! That's expected, due to how modern browsers handle images from local paths. You can read more about this [here](https://prodi.gy/docs/computer-vision#manual-jsonl) for instance: If you don't want to store the image data with the tasks, the easiest way to load images is by providing URLs. Modern browsers typically [block images from local paths](https://stackoverflow.com/questions/39007243/cannot-open-local-file-chrome-not-allowed-to-load-local-resource) for security reasons. So you can either host the images with a local web server (e.g. Prodigy's image-server loader or in an S3 bucket (or similar). So instead of the local paths, use URLs or use --loa…

As it mentions, you may want to use load images by [URL's using `image-server` loader](https://prodi.gy/docs/computer-vision#manual-jsonl).

Also related, are you aware of [base 64 encodings](https://prodi.gy/docs/api-interfaces#image)?

> Using base64-encoded data URIs and storing the image data **with the annotation task** is the safest way to ensure that you never lose the reference to the original data. If you only store URLs or file names and the original files are ever renamed or get lost, your annotations will be useless. However, keep in mind that all task data will be also be **stored in the database** – including the base64-encoded images. In some cases, this can lead to unexpected results and **database bloat**.

Therefore, you may want to turn off base 64 encodings when annotating. If you do that, then your annotations will only look like this (that is, `"image"` is the URL, not base64 encoding):

```python
{
  "image": "https://images.unsplash.com/photo-1554415707-6e8cfc93fe23?w=400",
  "spans": [{"points": [[155, 15], [305, 15], [305, 160], [155, 160]], "label": "LAPTOP"}]
}

```

Here's a related post that includes a [snippet](https://prodi.gy/docs/custom-recipes#before_db) you can use in a custom recipe to prevent the base 64 encodings in order to use the `mark` recipe:

> [@Labelling a set of images (classification)](https://support.prodi.gy/t/labelling-a-set-of-images-classification/4608/2):
>
> Hi! It sounds like you're definitely on the right track slightly_smiling_face Instead of using the mark recipe, which really just streams in what you give it, you might actually find it easier to just implement a custom recipe for this, since it'll make it more obvious what's going on and lets you add your own custom logic (e.g. for shuffling, removing base64 and maybe other stuff). This example recipe actually goes in a very similar directon: [https://prodi.gy/docs/computer-vision#classifica…](https://prodi.gy/docs/computer-vision#classification-multi)

Hopefully these two posts can help you out. Let me know if you have any further questions!

---

_[View the full topic](https://support.prodi.gy/t/how-to-access-and-remodel-a-dataset-that-has-already-been-annotated-with-prodigy-for-images/6070)._
