How to Install and run doctr pytorch build despite having tensorflow installed in my environment #1729
-
I Need to install doctr package in my python environment, where both tensorflow and pytorch is installed. I would like to use the pytorch version. How can set that. By default it is loading the tensorflow version since it is checked at first in models.utils.init.py
How can I skip this and import pytorch |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @prithivi1 👋, You can set an env variable:
or run your script with it:
Same works with TensorFlow where USE_TF=0 would disable it and =1 enable :) |
Beta Was this translation helpful? Give feedback.
-
Thanks @felixdittrich92 |
Beta Was this translation helpful? Give feedback.
Hi @prithivi1 👋,
You can set an env variable:
(NOTE: set this on top of your code before importing any doctr components)
or run your script with it:
Same works with TensorFlow where USE_TF=0 would disable it and =1 enable :)