Skip to content

How to Install and run doctr pytorch build despite having tensorflow installed in my environment #1729

Closed Answered by felixdittrich92
prithivi1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @prithivi1 👋,

You can set an env variable:
(NOTE: set this on top of your code before importing any doctr components)

import os
os.environ["USE_TORCH"] = "1"

or run your script with it:

USE_TORCH=1 python3 path/to/your_script.py

Same works with TensorFlow where USE_TF=0 would disable it and =1 enable :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by prithivi1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants