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

Erratic behavior of the "debug sample" visualizer #263

Open
joihn opened this issue Nov 18, 2024 · 0 comments
Open

Erratic behavior of the "debug sample" visualizer #263

joihn opened this issue Nov 18, 2024 · 0 comments

Comments

@joihn
Copy link

joihn commented Nov 18, 2024

I am experiencing erratic behavior of the "debug sample" visualizer.

I am uploading some image to an experiement that is in the "completed" state,
Sometime (but not always), the visualizer does not allow me to click on the left/right arrow to visualize other samples (like if there was no other sample available)
image

sorry if I do not have a better reproduction pipeline,
The behavior is quite random, but was observed on 2 different machines, (both chrome and firefox).

from clearml import Task
from PIL import Image
import numpy as np

# Connect to your experiment
task = Task.get_task(task_id="<your_id>")

# Generate and log multiple images
mylist = [1000, 1001,1002,1003, 1007, 1005]
for i in mylist:  # Numbe of images to upload
    # Create a random image
    image_array = np.random.randint(0, 255, (100, 100, 3), dtype=np.uint8)
    image = Image.fromarray(image_array)

    # Save the image locally
    image_path = f"example_image_{i}.png"
    image.save(image_path)

    # Upload the image with unique iteration
    task.get_logger().report_image(
        title="Image",
        series="Generated Images",  # Use the same series name
        iteration=i,  # Unique iteration number
        local_path=image_path,
    )

clearML server: 1.16.2
clearML python package: 1.16.4

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

1 participant