Skip to content

create npy masks#8

Open
nemaderinku wants to merge 1 commit into
DREAMS-lab:masterfrom
nemaderinku:master
Open

create npy masks#8
nemaderinku wants to merge 1 commit into
DREAMS-lab:masterfrom
nemaderinku:master

Conversation

@nemaderinku
Copy link
Copy Markdown
Contributor

This is script to run in container bash

@harishanand95
Copy link
Copy Markdown
Member

harishanand95 commented Apr 10, 2020

@nemaderinku thank you. Let's add this into the repo.
I feel like this could be parallelized. Look into GNU parallel command that can take a single process and run in parallel. We can also look CUDA support in python to parallelize the execution.

PS: If we can generate single image mask under 1 sec, a parallelized method should give us 80 masks in approx. 1-2 sec in the new machine.

@ashwinjosep

Comment thread create_masks.py
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "deepgis_moon.agdss.settings")
django.setup()

from wand.color import Color as WandColor
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add wand and other dependencies to a new requirements.txt file in the repo, so that users can pip install easily.
This can be a separate commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants