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

Visual identification fails #202

Open
MadAlex21 opened this issue May 12, 2023 · 3 comments
Open

Visual identification fails #202

MadAlex21 opened this issue May 12, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@MadAlex21
Copy link

Dear Trex developer,
I am a student in the Ache lab at the University of Wuerzburg and I want to use Trex for fly tracking. I encountered a problem during the visual identification process.
When I start the visual identification in Trex the training process fails. It cannot define the function „learn_static::estimate_uniqueness“ because „learn_static“ throws following runtime exception:
ImportError: cannot import name ‚keras‘ from ‚tensorflow‘ (unknown location)
I suggest there are dependency-problems because I followed the installation-instructionsfor Windows, installed everything with conda, but had to install a new version of tensorflow via pip to start the training process. Now I’m having tensorflow (and keras) 2.12.0 (as it is used when installing Trex on Mac with M1 chip).
I’m happy about every suggestion how to solve this problem.

ErrorVisualIdentification

Computer:

  • Operating system: Windows 10
  • Build hash: 19044.2965
  • Terminal used: Anaconda Prompt
@MadAlex21 MadAlex21 added the bug Something isn't working label May 12, 2023
@mooch443
Copy link
Owner

mooch443 commented Jul 9, 2023

Hey, I realize this is late but - seems like your conda environment is broken? It says it cannot import keras from tensorflow. You could try out a beta version (be careful though) that uses all-together different versions of everything:

# Linux / Windows / macOS
conda create -n beta -c trex-beta -c pytorch -c nvidia trex

@tettcarolyn
Copy link

Hi Tristan! I'm having a similar issue running visual identification on the Trex Beta version using Windows 11. I was able to successfully convert the video, but when starting visual identification, this is the error that occurs:

image

@mooch443
Copy link
Owner

Hey there, unfortunately this does not really help me much in debugging this :( What version are you running? And it seems you are running it in cmd.exe. You should launch it from an anaconda powershell prompt, which is what I am doing on Windows usually. If you can, provide the entire log of running the program and try updating your version, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants