Skip to content

Commit

Permalink
config: no conda
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jul 20, 2023
1 parent 5bdd7be commit 3648b5e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions happypose/pose_estimators/cosypose/cosypose/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@
MEMORY = Memory(CACHE_DIR, verbose=2)


CONDA_PREFIX = os.environ['CONDA_PREFIX']
if 'CONDA_PREFIX_1' in os.environ:
CONDA_BASE_DIR = os.environ['CONDA_PREFIX_1']
CONDA_ENV = os.environ['CONDA_DEFAULT_ENV']
else:
CONDA_BASE_DIR = os.environ['CONDA_PREFIX']
CONDA_ENV = 'base'
if 'CONDA_PREFIX' in os.environ:
CONDA_PREFIX = os.environ['CONDA_PREFIX']
if 'CONDA_PREFIX_1' in os.environ:
CONDA_BASE_DIR = os.environ['CONDA_PREFIX_1']
CONDA_ENV = os.environ['CONDA_DEFAULT_ENV']
else:
CONDA_BASE_DIR = os.environ['CONDA_PREFIX']
CONDA_ENV = 'base'

cfg = yaml.load((PROJECT_DIR / 'happypose/pose_estimators/cosypose/config_yann.yaml').read_text(), Loader=yaml.FullLoader)

Expand Down

0 comments on commit 3648b5e

Please sign in to comment.