I am currently running the scripts on WSL ubuntu
Actually, datasets should have an automatic preview...
Can you please paste the response from events.debug_images ?
Thanks a lot, I will have a look at that!
It isn't a bug, you have to add the previews manually through reporting. For example:
ds = Dataset.create(...) ds.add_files(...) ds.get_logger().report_media(...)
CostlyOstrich36 WebApp: 1.9.1-312 • Server: 1.9.1-312 • API: 2.23
@<1523701070390366208:profile|CostlyOstrich36> I am facing the same issue:
{"meta":{"id":"90841d05dfb1431a8d9dfc6bfdb39f9e","trx":"90841d05dfb1431a8d9dfc6bfdb39f9e","endpoint":{"name":"events.debug_images","requested_version":"2.23","actual_version":"2.7"},"result_code":200,"result_subcode":0,"result_msg":"OK","error_stack":"","error_data":{}},"data":{"metrics":[]}}
How about when you view it in the datasets view? Also what version of clearml package do you have?
The above output is on the clearml community server
CostlyOstrich36 I do see the new "image" in the metric drop down, so something has changed - but there are no preview images there.
So I added the snippet above to the code,
and now the preview for the first 10 rows shows up. However, the automatic preview is still not working.
Also when in this view, open developer tools (F12) and see what calls you get back for debug samples
CostlyOstrich36 Do you have any idea how I could debug that?
@<1523701168822292480:profile|ExuberantBat52> , did you add debug samples in a similar fashion? What version of the clearml sdk are you using? Also what server?
Looping in @<1523703436166565888:profile|DeterminedCrab71> & @<1523701435869433856:profile|SmugDolphin23> for visibility
Might need to refresh page after opening dev tools 🙂
This is how I usually add visualization
#Report data preview
ds.get_logger().report_table(title="Data Sample", series="First Ten Rows", table_plot=data1[:10])
ds.upload()
ds.finalize()
ProudElephant77 , can you please add a code snippet of what you did?
@<1523701070390366208:profile|CostlyOstrich36> Hi John, I have posted that in the screenshot above. Isn't that what you meant?
CostlyOstrich36 Unfortunately that didn't helped 😞
CostlyOstrich36 The latest clearml package, installed these days - 1.9.0
The dataset view is also empty:
Please check what you get for events.debug_images in network section of developer tools (F12) when trying to view the preview in the dataset
` from clearml import Dataset
IMG_PATH = "/home/mfb/Temp/sample-ds/50-ok.jpg"
Create dataset and add sample image
ds = Dataset.create(dataset_name="Test", dataset_project="Dataset-Test")
ds.add_files(path=IMG_PATH)
ds.upload()
Add and report image
logger = ds.get_logger()
logger.report_image("image", "sample image", iteration=0, local_path=IMG_PATH)
logger.flush()
Finalize the dataset
ds.finalize() `
Above is the response for the events.debug_images
