galbraun commited on
Commit
c8e7168
1 Parent(s): eeb74de

*Split commands of preparing environment in README file > *added -y for conda env creation for less interactions for the user

Browse files
Files changed (2) hide show
  1. Makefile +2 -2
  2. README.md +11 -2
Makefile CHANGED
@@ -19,7 +19,7 @@ endif
19
  env:
20
  ifeq (True,$(HAS_CONDA))
21
  @echo ">>> Detected conda, creating conda environment."
22
- conda create --name $(PROJECT_NAME) python=3.7.6
23
  @echo ">>> New conda env created. Activate with:\nconda activate $(PROJECT_NAME)"
24
  else
25
  @echo ">>> No conda detected, creating venv environment."
@@ -34,4 +34,4 @@ load_requirements:
34
 
35
  save_requirements:
36
  @echo ">>> Saving requirements."
37
- pip list --format=freeze > requirements.txt
19
  env:
20
  ifeq (True,$(HAS_CONDA))
21
  @echo ">>> Detected conda, creating conda environment."
22
+ conda create -y --name $(PROJECT_NAME) python=3.7.6
23
  @echo ">>> New conda env created. Activate with:\nconda activate $(PROJECT_NAME)"
24
  else
25
  @echo ">>> No conda detected, creating venv environment."
34
 
35
  save_requirements:
36
  @echo ">>> Saving requirements."
37
+ pip list --format=freeze > requirements.txt
README.md CHANGED
@@ -29,15 +29,24 @@ If you'd like to take part, please follow the guide.
29
  ```bash
30
  $ make env
31
  $ source activate savta_depth
32
- $ make load_requirements
33
  ```
34
-
 
 
35
  **Note**: If you don't have a GPU you will need to install pytorch separately and then run make requirements. You can install pytorch for computers without a gpu with the following command:
36
 
37
  ```bash
38
  $ conda install pytorch torchvision cpuonly -c pytorch
39
  ```
40
 
 
 
 
 
 
 
 
 
41
  * Pull the dvc files to your workspace by typing:
42
 
43
  ```bash
29
  ```bash
30
  $ make env
31
  $ source activate savta_depth
 
32
  ```
33
+
34
+ Now when we have an environment, let's install all of the required libraries.
35
+
36
  **Note**: If you don't have a GPU you will need to install pytorch separately and then run make requirements. You can install pytorch for computers without a gpu with the following command:
37
 
38
  ```bash
39
  $ conda install pytorch torchvision cpuonly -c pytorch
40
  ```
41
 
42
+ To install the required libraries run the following command:
43
+
44
+ ```bash
45
+ $ make load_requirements
46
+ ```
47
+
48
+
49
+
50
  * Pull the dvc files to your workspace by typing:
51
 
52
  ```bash