Coder Social home page Coder Social logo

fr1ll / clip-plot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaledhlab/pix-plot

2.0 2.0 0.0 17.56 MB

A WebGL viewer for UMAP-clustered images

Home Page: https://fr1ll.github.io/clip-plot/

License: MIT License

JavaScript 35.45% HTML 6.79% Python 15.84% CSS 7.98% Jupyter Notebook 33.95%

clip-plot's People

Contributors

carlootano avatar cderose avatar dmreagan avatar duhaime avatar ed-fish avatar fr1ll avatar kruusnec avatar mannu-arneja avatar oliviersorba avatar pleonard212 avatar saketkc avatar tokee avatar

Stargazers

 avatar  avatar

Watchers

 avatar

clip-plot's Issues

Enable multiple embeddings

  • Change folder for embeddings output to match model name
  • Enabled viewer to consume multiple embeddings

Date layout output file name is not consistent

Date layout output file name is not consistent. Layout is referred to as "date" is multiple locations:

  • get_date_layout()
  • referenced in manifest.json as "date"
  • metadata date output named "date.json"

Yet the layout output is referenced as "timeline".

image

Replace glob2 with pathlib.Path.glob

The main feature of glob2 is that it supports recurvsive ** wildcard expansion.

glob.glob supports this now with recursive=True option. Path.glob supports recursive expansion by default.

glob2 also hasn't been updated since 2019.

Let's replace glob2 with Path.glob to remove an unnecessary dependency and to push us more to use Path objects which make other things more convenient.

Allow images with the same filename/basename

Allow clip-plot to use images with the same basename. Since the images location can be provided as a glob, more than one sub directory can be specified:

--images "jpg_parent_folder/**/*.jpg"

jpg_parent_folder
---> jpg_sub_folder_1
-------> imageA.jpg
-------> imageB.jpg
---> jpg_sub_folder_2
-------> imageA.jpg
-------> imageC.jpg

The although the names are not unique, the image paths are unique:

  • jpg_parent_folder/jpg_sub_folder_1/imageA.jpg <---Name not unique
  • jpg_parent_folder/jpg_sub_folder_1/imageB.jpg
  • jpg_parent_folder/jpg_sub_folder_2/imageA.jpg <---Name not unique
  • jpg_parent_folder/jpg_sub_folder_2/imageC.jpg

Error with small sample size

ValueError: n_samples=10 should be >= n_clusters=12.

get_hotspots(...):
    ...
    z = model.fit(vecs)  # Error here!

Notes:

  • HDBSCAN not available; using sklearn KMeans
  • CUML not available; using umap-learn UMAP

To do:

  • Added two more butterflies to test case and issue no longer happens.
  • Need to add error handling.

ThreeJS error when selecting lat/long view

Getting an error when selecting "Arrange images using lat/long coordinates"

image

THREE.Object3D.add: object not an instance of THREE.Object3D. null [three.min.js:7429:13]
add http://localhost:5000/tests/smithsonian_butterflies_10/output_test_temp/assets/vendor/dist/three.min.js:7429
show http://localhost:5000/tests/smithsonian_butterflies_10/output_test_temp/assets/js/tsne.js:3471
showHideContext http://localhost:5000/tests/smithsonian_butterflies_10/output_test_temp/assets/js/tsne.js:797
set http://localhost:5000/tests/smithsonian_butterflies_10/output_test_temp/assets/js/tsne.js:708
addEventListeners http://localhost:5000/tests/smithsonian_butterflies_10/output_test_temp/assets/js/tsne.js:661

This issue is most likely caused by the updated ThreeJS library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.