# \#data-generator

**URL:** https://discuss.ai.google.dev/tag/data-generator/350.md

[Latest](https://discuss.ai.google.dev/latest.md) · [Categories](https://discuss.ai.google.dev/categories.md) · [Tags](https://discuss.ai.google.dev/tags.md)

---

## [Move from predict\_generator to predict](https://discuss.ai.google.dev/t/move-from-predict-generator-to-predict/39140)

<div class="topic-metadata">

**Author:** [@Anthony\_Weaver](https://discuss.ai.google.dev/u/Anthony_Weaver)\
**Replies:** 2\
**Last updated:** [September 13, 2024, 2:25pm UTC](https://discuss.ai.google.dev/t/move-from-predict-generator-to-predict/39140 "2024-09-13T14:25:41Z")

</div>

I am working on moving some code that is using the currently deprecated model.predict\_generator. I would like some guidance on how to do that as I couldn’t easily find examples on how to make the change. Here is the re…

---

## [Running out of memory while performing model training](https://discuss.ai.google.dev/t/running-out-of-memory-while-performing-model-training/24407)

<div class="topic-metadata">

**Author:** [@matca](https://discuss.ai.google.dev/u/matca)\
**Replies:** 2\
**Last updated:** [January 28, 2024, 1:49am UTC](https://discuss.ai.google.dev/t/running-out-of-memory-while-performing-model-training/24407 "2024-01-28T01:49:29Z")

</div>

I am using .npy files, the masks are all 140MB with dimesions (240, 240, 160, 4) and the images are 70MB with dimesions (240. 240, 160, 1). I am using a data generator because the images are 3D and are quite large, but I…

---

## [Input ran out of data interrupting training](https://discuss.ai.google.dev/t/input-ran-out-of-data-interrupting-training/31714)

<div class="topic-metadata">

**Author:** [@matca](https://discuss.ai.google.dev/u/matca)\
**Replies:** 1\
**Last updated:** [January 5, 2024, 8:48am UTC](https://discuss.ai.google.dev/t/input-ran-out-of-data-interrupting-training/31714 "2024-01-05T08:48:25Z")

</div>

I am working in a tumor segmentation, the images are 3D in nifti format (MRI Images). I created a data generator because if I uploaded the full dataset to RAM, it crashes due to the 3D images. The dataset is composed by …
