Skip to content

Commit f420685

Browse files
committed
Fix transfer model instructions
1 parent a27df5a commit f420685

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

transfer_model/README.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ transfer_data
7373

7474
To run the code to convert SMPL meshes to SMPL-X parameters use the following command:
7575
```Shell
76-
python main.py --exp-cfg config_files/smpl2smplx.yaml
76+
python -m transfer_model --exp-cfg config_files/smpl2smplx.yaml
7777
```
78+
This should be run from the top directory of the repository.
7879

7980
The file *smpl2smplx.yaml* contains a sample configuration that reads meshes from a folder,
8081
processes them and returns pkl files with SMPL-X parameters. To run on your own data create a folder
@@ -97,10 +98,11 @@ SMPL cannot model them.
9798

9899
### SMPL+H to SMPL
99100

100-
To run the code to convert SMPL+H meshes to SMPL parameters use the following command:
101+
To run the code to convert SMPL+H meshes to SMPL parameters use the following command from the root `smplx` directory:
101102
```Shell
102-
python main.py --exp-cfg config_files/smplh2smpl.yaml
103+
python -m transfer_model --exp-cfg config_files/smplh2smpl.yaml
103104
```
105+
This should be run from the top directory of the repository.
104106

105107
The file *smplh2smpl.yaml* contains a sample configuration that reads meshes from a folder,
106108
processes them and returns pkl files with SMPL parameters. To run on your own data create a folder
@@ -113,8 +115,9 @@ hands.
113115

114116
To run the code to convert SMPL meshes to SMPL+H parameters use the following command:
115117
```Shell
116-
python main.py --exp-cfg config_files/smpl2smplh.yaml
118+
python -m transfer_model --exp-cfg config_files/smpl2smplh.yaml
117119
```
120+
This should be run from the top directory of the repository.
118121

119122
The file *smpl2smplh.yaml* contains a sample configuration that reads meshes from a folder,
120123
processes them and returns pkl files with SMPL parameters. To run on your own data create a folder
@@ -124,8 +127,9 @@ with SMPL meshes, in either ply or obj format, change the path in the config fil
124127

125128
To run the code to convert SMPL+H meshes to SMPL-X parameters use the following command:
126129
```Shell
127-
python main.py --exp-cfg config_files/smplh2smplx.yaml
130+
python -m transfer_model --exp-cfg config_files/smplh2smplx.yaml
128131
```
132+
This should be run from the top directory of the repository.
129133

130134
The file *smplh2smplx.yaml* contains a sample configuration that reads meshes from a folder,
131135
processes them and returns pkl files with SMPL-X parameters. To run on your own data create a folder
@@ -136,8 +140,9 @@ with SMPL+H meshes, in either ply or obj format, change the path in the config f
136140

137141
To run the code to convert SMPL-X meshes to SMPL+H parameters use the following command:
138142
```Shell
139-
python main.py --exp-cfg config_files/smplx2smplh.yaml
143+
python -m transfer_model --exp-cfg config_files/smplx2smplh.yaml
140144
```
145+
This should be run from the top directory of the repository.
141146

142147
The file *smplx2smpl.yaml* contains a sample configuration that reads meshes from a folder,
143148
processes them and returns pkl files with SMPL+H parameters. To run on your own data create a folder

0 commit comments

Comments
 (0)