Skip to content

AttributeError: numpy.ndarray object has no attribute properties #223

Description

@xiaoxiongtao

I tried to run your code in the codelab, but I always got an error like "AttributeError: numpy.ndarray object has no attribute properties
". I tried other methods but none of them worked. I admire your work very much and hope you can help me solve this problem. xiaoxxtt@mails.cqjtu.edu.cn

image

Activity

  1. shuyiloe commented on Nov 28, 2024

    @shuyiloe

    In the newly released version of deeptrack, pipeline no longer returns image object but ndarray. If you need Image objects, you can enable them by using pipeline.store_properties(), restoring the behavior from previous releases.

  2. indirabarros commented on Dec 3, 2024

    @indirabarros

    How do you use it? It didn't work for me.

  3. harshithbachimanchi commented on Dec 4, 2024

    @harshithbachimanchi
    Contributor

    Hi! As @shuyiloe rightly pointed out, the latest version of DeepTrack no longer returns Image objects (by default) which store the properties of feature's used to create the image. However, it can be enabled by using .store_properties() on the pipeline object before .update() step.

    For this example, you could just do dataset.store_properties() before dataset.update() and that should solve the issue!

  4. locked and limited conversation to collaborators on Feb 19, 2025
  5. converted this issue into a discussion #298 on Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolvedThe issue has been resolved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions