Skip to content

Commit 046f035

Browse files
shapovalovfacebook-github-bot
authored andcommitted
Fix in apply_net.py dump directory. (facebookresearch#227)
Summary: It should use full names after listdir. Thanks for your contribution! If you're sending a large PR (e.g., >50 lines), please open an issue first about the feature / bug, and indicate how you want to contribute. Before submitting a PR, please run `dev/linter.sh` to lint the code. Pull Request resolved: facebookresearch#227 Differential Revision: D18301671 Pulled By: ppwwyyxx fbshipit-source-id: 845778bbc072617652bd20f0ac90a1bc08f34a20
1 parent 535fcfb commit 046f035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/DensePose/apply_net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def setup_config(
101101
def _get_input_file_list(cls: type, input_spec: str):
102102
if os.path.isdir(input_spec):
103103
file_list = [
104-
fname
104+
os.path.join(input_spec, fname)
105105
for fname in os.listdir(input_spec)
106106
if os.path.isfile(os.path.join(input_spec, fname))
107107
]

0 commit comments

Comments
 (0)