Skip to content

Commit 4919d55

Browse files
committed
README: correct syntax highlighting for console code (#2482)
1 parent e0a6912 commit 4919d55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Testing:
2828

2929
The recommended way to install TorchGeo is with [pip](https://pip.pypa.io/):
3030

31-
```console
32-
$ pip install torchgeo
31+
```sh
32+
pip install torchgeo
3333
```
3434

3535
For [conda](https://docs.conda.io/) and [spack](https://spack.io/) installation instructions, see the [documentation](https://torchgeo.readthedocs.io/en/stable/user/installation.html).
@@ -192,7 +192,7 @@ trainer.fit(model=task, datamodule=datamodule)
192192

193193
TorchGeo also supports command-line interface training using [LightningCLI](https://lightning.ai/docs/pytorch/stable/cli/lightning_cli.html). It can be invoked in two ways:
194194

195-
```console
195+
```sh
196196
# If torchgeo has been installed
197197
torchgeo
198198
# If torchgeo has been installed, or if it has been cloned to the current directory
@@ -201,7 +201,7 @@ python3 -m torchgeo
201201

202202
It supports command-line configuration or YAML/JSON config files. Valid options can be found from the help messages:
203203

204-
```console
204+
```sh
205205
# See valid stages
206206
torchgeo --help
207207
# See valid trainer options
@@ -233,7 +233,7 @@ data:
233233
234234
we can see the script in action:
235235
236-
```console
236+
```sh
237237
# Train and validate a model
238238
torchgeo fit --config config.yaml
239239
# Validate-only

0 commit comments

Comments
 (0)