Spaces:
Runtime error
Runtime error
switch to sliceguard demo
Browse files- run.py +2 -2
- sliceline.pkl → sliceguard-issues.pkl +2 -2
- sliceguard-layout.json +1 -0
- sliceline-layout.json +0 -1
- spotlight-layout.json +0 -1
run.py
CHANGED
@@ -7,7 +7,7 @@ import pandas as pd
|
|
7 |
if __name__ == "__main__":
|
8 |
cache_file = "dataset_cache.parquet"
|
9 |
cache_file_enrichment="cifar100-enrichment-cv.parquet"
|
10 |
-
cache_file_issues="
|
11 |
|
12 |
if os.path.exists(cache_file):
|
13 |
# Load dataset from cache
|
@@ -35,6 +35,6 @@ if __name__ == "__main__":
|
|
35 |
#df = dataset.to_pandas()
|
36 |
df_show = df.drop(columns=['embedding', 'probabilities'])
|
37 |
while True:
|
38 |
-
view = spotlight.show(df_show, issues=issues, port=7860, host="0.0.0.0", layout="
|
39 |
dtype={"image": spotlight.Image, "embedding_reduced": spotlight.Embedding}, allow_filebrowsing=False)
|
40 |
view.close()
|
|
|
7 |
if __name__ == "__main__":
|
8 |
cache_file = "dataset_cache.parquet"
|
9 |
cache_file_enrichment="cifar100-enrichment-cv.parquet"
|
10 |
+
cache_file_issues="sliceguard-issues.pkl"
|
11 |
|
12 |
if os.path.exists(cache_file):
|
13 |
# Load dataset from cache
|
|
|
35 |
#df = dataset.to_pandas()
|
36 |
df_show = df.drop(columns=['embedding', 'probabilities'])
|
37 |
while True:
|
38 |
+
view = spotlight.show(df_show, issues=issues, port=7860, host="0.0.0.0", layout="sliceguard-layout.json",
|
39 |
dtype={"image": spotlight.Image, "embedding_reduced": spotlight.Embedding}, allow_filebrowsing=False)
|
40 |
view.close()
|
sliceline.pkl → sliceguard-issues.pkl
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe2c652c7600f011f0225e9e6fc9c133781409f7d1a1b4ce3a1c5871809cda25
|
3 |
+
size 22835
|
sliceguard-layout.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"orientation":"vertical","children":[{"kind":"split","weight":60,"orientation":"horizontal","children":[{"kind":"tab","weight":30.029340660631746,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"full","visibleColumns":null,"sorting":null,"orderByRelevance":false}}]},{"kind":"tab","weight":27.735432693500154,"children":[{"kind":"widget","name":"Similarity Map","type":"similaritymap","config":{"placeBy":null,"reductionMethod":null,"colorBy":"fine_label_prediction_error","sizeBy":null,"filter":false,"umapNNeighbors":20,"umapMetric":null,"umapMinDist":0.15,"pcaNormalization":null,"umapMenuLocalGlobalBalance":null,"umapMenuIsAdvanced":false}}]},{"kind":"tab","weight":42.235226645868096,"children":[{"kind":"widget","name":"Issues","type":"IssuesWidget"},{"kind":"widget","name":"Scatter Plot","type":"scatterplot","config":{"xAxisColumn":null,"yAxisColumn":null,"colorBy":null,"sizeBy":null,"filter":false}},{"kind":"widget","name":"Histogram","type":"histogram","config":{"columnKey":"dark_score","stackByColumnKey":"fine_label_prediction_error","filter":false}}]}]},{"kind":"tab","weight":40,"children":[{"kind":"widget","name":"Inspector","type":"inspector","config":{"views":[{"view":"ImageView","key":"8GcjVfK27yKRQzznAqWMRG","name":"full_image","columns":["full_image"]},{"view":"ScalarView","columns":["fine_label_prediction"],"name":"view","key":"05993ddc-4bd7-45d5-850e-79b03c22f951"}],"visibleColumns":4}}]}]}
|
sliceline-layout.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"orientation":"vertical","children":[{"kind":"split","weight":1,"orientation":"horizontal","children":[{"kind":"tab","weight":1,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"selected","visibleColumns":null,"sorting":null,"orderByRelevance":false}}]},{"kind":"tab","weight":1,"children":[{"kind":"widget","name":"Similarity Map","type":"similaritymap","config":{"placeBy":null,"reductionMethod":null,"colorBy":"fine_label_prediction_error","sizeBy":null,"filter":false,"umapNNeighbors":20,"umapMetric":null,"umapMinDist":0.15,"pcaNormalization":null,"umapMenuLocalGlobalBalance":null,"umapMenuIsAdvanced":false}}]},{"kind":"tab","weight":1,"children":[{"kind":"widget","name":"Issues","type":"IssuesWidget","config":null}]}]},{"kind":"tab","weight":1,"children":[{"kind":"widget","name":"Inspector","type":"inspector","config":{"views":[{"view":"ArrayLens","key":"12MuLXBrGWyR1UqByhSAGR","name":"embedding_reduced","columns":["embedding_reduced"]},{"view":"ImageView","key":"tuCdyeyADoxB7jtazsiLt2","name":"image","columns":["image"]},{"view":"TextLens","columns":["fine_label_prediction_str"],"name":"view","key":"45099023-3dcc-4f56-baa3-b0447a98a3c6"},{"view":"TextLens","columns":["fine_label_str"],"name":"view","key":"f057b3df-7920-4adb-bf6f-03c260a56b94"}]}}]}]}
|
|
|
|
spotlight-layout.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"orientation":"vertical","children":[{"kind":"split","weight":55.52608311229001,"orientation":"horizontal","children":[{"kind":"tab","weight":41.16700201207244,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"full","visibleColumns":["coarse_label_str","fine_label_prediction_str","fine_label_str","image","__idx__"],"sorting":[["__idx__","DESC"]],"orderByRelevance":false,"columnWidths":{"coarse_label":92,"coarse_label_str":165,"embedding_reduced":128,"fine_label":92,"fine_label_prediction":92,"fine_label_prediction_error":92,"fine_label_prediction_str":244,"fine_label_str":194,"full_image":256,"image":200,"split":256,"__idx__":92,"__last_edited_at__":192,"__last_edited_by__":256}}}]},{"kind":"tab","weight":33.66487769877306,"children":[{"kind":"widget","name":"Similarity Map","type":"similaritymap","config":{"placeBy":null,"reductionMethod":null,"colorBy":"fine_label_str","sizeBy":null,"filter":false,"umapNNeighbors":20,"umapMetric":null,"umapMinDist":0.15,"pcaNormalization":null,"umapMenuLocalGlobalBalance":null,"umapMenuIsAdvanced":false}},{"kind":"widget","name":"Scatter Plot","type":"scatterplot","config":{"xAxisColumn":null,"yAxisColumn":null,"colorBy":null,"sizeBy":null,"filter":false}}]},{"kind":"tab","weight":25.168120289154498,"children":[{"kind":"widget","name":"Histogram","type":"histogram","config":{"columnKey":"fine_label_str","stackByColumnKey":"fine_label_prediction_error","filter":false}}]}]},{"kind":"tab","weight":44.47391688770999,"children":[{"kind":"widget","name":"Inspector","type":"inspector","config":{"views":[{"view":"ImageView","key":"es3NP2fbYeG5TzTQqCzZKL","name":"image","columns":["image"]},{"view":"TextLens","columns":["fine_label_str"],"name":"view","key":"7262001a-1270-467c-bfe8-6b6883adbc7d"},{"view":"TextLens","columns":["fine_label_prediction_str"],"name":"view","key":"f72a8ae9-17c4-4097-b454-79a6f60865db"},{"view":"ScalarView","columns":["fine_label_prediction_error"],"name":"view","key":"be4d6afe-9093-4581-b363-df11d3c6d34a"}],"visibleColumns":4}}]}]}
|
|
|
|