mwang87 / SMART_NMR

Repository to help develop SMART
https://smart.ucsd.edu/
MIT License
0 stars 0 forks source link

[Projector] Adding thumbnails for structure #96

Closed mwang87 closed 4 years ago

mwang87 commented 4 years ago

We will be taking @vivianxu1999 code and using the big png generator. First step is to create structure images and make sure they are in order and then apply the code and create a button for the linkout.

mwang87 commented 4 years ago

@vivianxu1999 The approach doesnt seem to work for me. For example, I generated this structure image which is 3000x3000 pixels total with each image being 300x300. 390ea09d-8fef-4336-b685-829672c48615

I also provided this JSON for metadata:


{"embeddings": [ {"tensorName": "SMART Classic Embeddings With Structures", "tensorShape": [101, 180], "tensorPath": "https://cors-anywhere.herokuapp.com/https://mingwangbeta.ucsd.edu/embedding_data_classic/390ea09d-8fef-4336-b685-829672c48615", "metadataPath": "https://cors-anywhere.herokuapp.com/https://mingwangbeta.ucsd.edu/embedding_metadata_classic/390ea09d-8fef-4336-b685-829672c48615", "sprite": {"imagePath": "https://cors-anywhere.herokuapp.com/https://mingwangbeta.ucsd.edu/embedding_structures_classic/390ea09d-8fef-4336-b685-829672c48615", "singleImageDim": 300}}]}

I've tried setting the singleImageDim to 3000 and 300 and both don't seem to work. Any thoughts? Maybe I have one slight issue wrong?