Skip to content

Commit 73a3c5d

Browse files
committed
update install from source code
1 parent 9f16e46 commit 73a3c5d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ Run the following command to install the current released version of PyMIC:
3535
pip install PYMIC
3636
```
3737

38-
Alternatively, you can download the source code and add the path of pymic to the `PYTHONPATH` environment variable.
38+
Alternatively, you can download the source code for the latest version. Run the following command to compile and install:
39+
40+
```bash
41+
python setup.py install
42+
```
3943

4044
## Examples
4145
[PyMIC_examples][examples] provides some examples of starting to use PyMIC. For beginners, you only need to simply change the configuration files to select different datasets, networks and training methods for running the code. For advanced users, you can develop your own modules based on this package. You can find both types of examples

pymic/net_run/agent_cls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def infer(self):
278278
checkpoint = torch.load(checkpoint_name, map_location = device)
279279
self.net.load_state_dict(checkpoint['model_state_dict'])
280280

281-
if(self.config['testing']['evaluation_mode'] == True):
281+
if(self.config['testing'].get('evaluation_mode', True)):
282282
self.net.eval()
283283

284284
output_csv = self.config['testing']['output_csv']

0 commit comments

Comments
 (0)