Skip to content

Out of memory #1

@synthdatagit

Description

@synthdatagit

Hi,

first of all. Really cool repo

I have tried to use it for my own data, but I encounter an issue with memory. My metadata.csv file contains approx. 32000 lines (32000 objects in 2000 images).

When I run pixplot.py I get the following error

Traceback (most recent call last):
File "C:\work\pixplotml\pixplot_server\pixplot\pixplot.py", line 1677, in
parse()
File "C:\work\pixplotml\pixplot_server\pixplot\pixplot.py", line 1673, in parse
process_images(**config)
File "C:\work\pixplotml\pixplot_server\pixplot\pixplot.py", line 220, in process_images
) = load_and_filter_images(**kwargs)
File "C:\work\pixplotml\pixplot_server\pixplot\pixplot.py", line 286, in load_and_filter_images
all_loaded_images = load_input_files(**kwargs)
File "C:\work\pixplotml\pixplot_server\pixplot\pixplot.py", line 277, in load_input_files
img = Image(path, **{"metadata": metadata, "vec": vec})
File "C:\work\pixplotml\pixplot_server\pixplot\pixplot.py", line 1483, in init
self.original = load_image(self.path)
File "C:\work\pixplotml\pixplot_server\pixplot\pixplot.py", line 1477, in load_image
return pil_image.open(image_path).convert("RGB")
File "C:\Users\xxxxxx\Anaconda3\envs\pixplotml\lib\site-packages\PIL\Image.py", line 923, in convert
return self.copy()
File "C:\Users\xxxxxx\Anaconda3\envs\pixplotml\lib\site-packages\PIL\Image.py", line 1179, in copy
return self._new(self.im.copy())
MemoryError

I have attached the memory usage
memory

Do you have any suggestions to working with larger datasets in pixplotml ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions