Skip to content

Confused about generating target masks #229

@willhunger

Description

@willhunger

Hi, I got some troubles when I run python main.py prepare-masks.

$ python main.py prepare-masks
Output directory: data/meta/masks_overlayed_eroded_0_dilated_0
loading annotations into memory...
Done (t=20.34s)
creating index...
index created!
total 41220
creating index...

This command has been running for 1 day and 9 hours and generated 35G data(about 103203 pictures) in ./meta.

$ ls -l | grep '^-' | wc -l
103203

$ du -h --max-depth=1
0       ./experiments
35G     ./meta
7.1G    ./raw
42G     .

And it‘s still running.

$ ps -eo pid,lstart,etime,cmd | grep python
31564 Wed Jul 29 10:52:49 2020  1-09:48:50 python main.py prepare-masks
31694 Wed Jul 29 10:52:51 2020  1-09:48:48 /home/jbd/.conda/envs/mapping/bin/python -c from multiprocessing.semaphore_tracker import main;main(4)

$top -c
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
31564 jbd       20   0  0.482t 0.028t 126812 S 322.8 11.4   6668:05 python main.py prepare-masks

Did I get some bug on multi-thread or something else?
Is there any solution to handle this? Should I use the annotation-small.json instead of annotation.json ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions