Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different colors for different points? #5

Open
WhiteTeaDragon opened this issue Jun 23, 2023 · 4 comments
Open

Different colors for different points? #5

WhiteTeaDragon opened this issue Jun 23, 2023 · 4 comments

Comments

@WhiteTeaDragon
Copy link

Hello!

Is there an opportunity to mark different points with different colors?

@xiaohk
Copy link
Member

xiaohk commented Jun 23, 2023

Currently we only support up to two groups. When I have more time, I will update the tool to support more groups. I will also update the Python function to make it easy for users to specify groups when generating their WizMap.

You can specify the group of each point in the JSON files. Take DiffusionDB as an example.

In the diffusiondb.json file, we specify the group names, contours associated with each group, etc.

# Keys of the the object
['grid',
 'xRange',
 'yRange',
 'sampleSize',
 'totalPointSize',
 'padded',
 'groupGrids',
 'groupTotalPointSizes',
 'embeddingName',
 'groupNames',
 'image',
 'topic']

In the diffusiondb.ndjson file, we give a group number to each point at the 5th item in the item array.

[0.6875,
  -1.3631,
  'a cinematic painting of ricky gervais as batman near a lake on a rainy day, beautiful lighting, high depth, ultra realistic, artistic, by annie leibovitz and greg rutowski ',
  '',
  0],
 [-3.4658,
  1.4771,
  'a hyper - detailed 3 d render of the hidden city of cloud caves, surrealism!!!!! surreal concept art, lifelike, photorealistic, digital painting, aesthetic, smooth, sharp focus, artstation hd, by greg rutkowski, klimt and nixeu and ian sprigger and wlop and krenz cushart, valentina remenar and asher duran, ',
  '',
  0],
[-4.7069817,
  4.4307537,
  '3f/3f72a44a-1b36-4de8-bd2a-68046e844429.webp',
  '',
  1],
 [-3.5961475,
  -3.2497282,
  '24/240c16c6-ab4d-4bd4-8519-7a153d59d137.webp',
  '',
  1]

@Bdl-1989
Copy link

please provide a sample that will be appreciate!

@Chao0511
Copy link

Hello,

I'm not sure if I understand correctly what is `group' in your answer.

e.g. I want to assign different color for different class in multi-class classification. Is there a way to do so?

Thanks.

@botbw
Copy link

botbw commented Aug 14, 2023

Currently we only support up to two groups. When I have more time, I will update the tool to support more groups. I will also update the Python function to make it easy for users to specify groups when generating their WizMap.

You can specify the group of each point in the JSON files. Take DiffusionDB as an example.

In the diffusiondb.json file, we specify the group names, contours associated with each group, etc.

# Keys of the the object
['grid',
 'xRange',
 'yRange',
 'sampleSize',
 'totalPointSize',
 'padded',
 'groupGrids',
 'groupTotalPointSizes',
 'embeddingName',
 'groupNames',
 'image',
 'topic']

In the diffusiondb.ndjson file, we give a group number to each point at the 5th item in the item array.

[0.6875,
  -1.3631,
  'a cinematic painting of ricky gervais as batman near a lake on a rainy day, beautiful lighting, high depth, ultra realistic, artistic, by annie leibovitz and greg rutowski ',
  '',
  0],
 [-3.4658,
  1.4771,
  'a hyper - detailed 3 d render of the hidden city of cloud caves, surrealism!!!!! surreal concept art, lifelike, photorealistic, digital painting, aesthetic, smooth, sharp focus, artstation hd, by greg rutkowski, klimt and nixeu and ian sprigger and wlop and krenz cushart, valentina remenar and asher duran, ',
  '',
  0],
[-4.7069817,
  4.4307537,
  '3f/3f72a44a-1b36-4de8-bd2a-68046e844429.webp',
  '',
  1],
 [-3.5961475,
  -3.2497282,
  '24/240c16c6-ab4d-4bd4-8519-7a153d59d137.webp',
  '',
  1]

Hi, could you please explain where we can find the diffusiondb.json (since it doesn't appear in the repo)? Also will be appreciate it if there will be an example for custom dataset.

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

No branches or pull requests

5 participants