Closed aditya9211 closed 5 years ago
python python/test.py --image_path project_clean/dense/images/ --sparse_path project_clean/dense/sparse/ --output_path project_clean/ --no_gpu False usage: test.py [-h] [--image_width IMAGE_WIDTH] [--image_height IMAGE_HEIGHT] [--patch_width PATCH_WIDTH] [--patch_height PATCH_HEIGHT] [--stride_width STRIDE_WIDTH] [--stride_height STRIDE_HEIGHT] [--num_depths NUM_DEPTHS] [--max_num_neighbors MAX_NUM_NEIGHBORS] [--no_gpu] --image_path IMAGE_PATH --sparse_path SPARSE_PATH --output_path OUTPUT_PATH [--load_bin LOAD_BIN] [--model_path MODEL_PATH] [--overwrite] [--log_file LOG_FILE] test.py: error: unrecognized arguments: False
Did you try adding --no_gpu
and NOT --no_gpu False
?
Yes I have tried that also
AttributeError: 'module' object has no attribute '_cuda_getDevice'
Kindly see to it that you have defined CPU executing function call
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&
On Mon, May 21, 2018 at 12:58 PM, Po-Han Huang notifications@github.com wrote:
Did you try adding --no_gpu and NOT --no_gpu False?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phuang17/DeepMVS/issues/4#issuecomment-390575440, or mute the thread https://github.com/notifications/unsubscribe-auth/AVPgjmGxpupJsRcTjne8iqp0Y6ro3k7Jks5t0mySgaJpZM4UGFmj .
Could you send me a screenshot of the error message when --no_gpu
is added? The codes seem to work on my machine, though.
Look into the GPU code, it's default is True.
I have changed this also but there also no success
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&
On Mon, May 21, 2018 at 1:22 PM, Po-Han Huang notifications@github.com wrote:
Could you send me a screenshot of the error message when --no_gpu is added? The codes seem to work on my machine, though.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phuang17/DeepMVS/issues/4#issuecomment-390580648, or mute the thread https://github.com/notifications/unsubscribe-auth/AVPgjovILcHn_kHrrBQq3djgrR069qpQks5t0nJFgaJpZM4UGFmj .
Sorry, I cannot see your screenshots. Could you provide an external link to them? Or upload it using GitHub website instead of email?
@PFA
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&
On Mon, May 21, 2018 at 2:06 PM, Po-Han Huang notifications@github.com wrote:
Sorry, I cannot see your screenshots. Could you provide an external link to them? Or upload it using GitHub website instead of email?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phuang17/DeepMVS/issues/4#issuecomment-390590298, or mute the thread https://github.com/notifications/unsubscribe-auth/AVPgjl1755k7UXMAVPPRYrLF6JMZsrC2ks5t0nyqgaJpZM4UGFmj .
Hi I still cannot see the screenshots. Can you upload them to https://imgur.com/ and copy the link back to here. Thanks.
https://drive.google.com/open?id=1vb2mt12y8-gi9iFBRmNzhA0ZpNEkCKgo
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&
On Mon, May 21, 2018 at 2:17 PM, Po-Han Huang notifications@github.com wrote:
Hi I still cannot see the screenshots. Can you upload them to https://imgur.com/ and copy the link back to here. Thanks.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phuang17/DeepMVS/issues/4#issuecomment-390592779, or mute the thread https://github.com/notifications/unsubscribe-auth/AVPgjqrdHRkTaXrYDXk8JbgWay_3L0h8ks5t0n8hgaJpZM4UGFmj .
https://drive.google.com/open?id=1wvNW2XXr8XvdUdebwtgieWvKAlWUZXBA
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&
On Mon, May 21, 2018 at 2:25 PM, Aditya Sharma < aditya.suzuki.sharma@gmail.com> wrote:
https://drive.google.com/open?id=1vb2mt12y8-gi9iFBRmNzhA0ZpNEkCKgo
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&
On Mon, May 21, 2018 at 2:17 PM, Po-Han Huang notifications@github.com wrote:
Hi I still cannot see the screenshots. Can you upload them to https://imgur.com/ and copy the link back to here. Thanks.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phuang17/DeepMVS/issues/4#issuecomment-390592779, or mute the thread https://github.com/notifications/unsubscribe-auth/AVPgjqrdHRkTaXrYDXk8JbgWay_3L0h8ks5t0n8hgaJpZM4UGFmj .
Ok, I found that the root cause seems to be: https://discuss.pytorch.org/t/on-a-cpu-device-how-to-load-checkpoint-saved-on-gpu-device/349/5
I will update the codes next week. For now, please change line 90 in test.py from
model.load_state_dict(torch.load(os.path.join(model_path)))
to
model.load_state_dict(torch.load(os.path.join(model_path), map_location=lambda storage, loc: storage))
.
Still the same error https://drive.google.com/open?id=1FEEw1JuNq1HvTvrKDnFFE8n8queI191C
Loading the trained model...
Traceback (most recent call last):
File "python/test.py", line 89, in
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&
On Tue, May 22, 2018 at 11:40 AM, Po-Han Huang notifications@github.com wrote:
Ok, I found that the root cause seems to be: https://discuss.pytorch.org/t/on-a-cpu-device-how-to-load- checkpoint-saved-on-gpu-device/349/5 I will update the codes next week. For now, please change line 90 in test.py from model.load_state_dict(torch.load(os.path.join(model_path))) to model.load_state_dict(torch.load(os.path.join(model_path), map_location=lambda storage, loc: storage)).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phuang17/DeepMVS/issues/4#issuecomment-390874234, or mute the thread https://github.com/notifications/unsubscribe-auth/AVPgjsXpUUSELEgngZx17_zU_UQAQiZdks5t06vogaJpZM4UGFmj .
You forgot to add --no_gpu
flag.
Close as there has been no update.
not able to run
parser.add_argument("--no_gpu", dest = "use_gpu", action = "store_false", default = True, help = "Disable use of GPU.")
So how to run it with CPU, as I have tried all these things mentioned yet no sucess