-
Notifications
You must be signed in to change notification settings - Fork 6.8k
A couple of issues in benchmark_score.py #8969
Comments
Please add labels: "Example", "Need Triage" |
Please remove the label 'Need Triage' |
@gautamkmr @sandeep-krishnamurthy please refrain from manually adding "Need Triage" label while triaging. Thanks. |
@juliensimon just tested this out and I don't hit either of these issues. With regards to Issue 1, there is logic to extract the number of layers from the network string for VGG (as with ResNet).
And for Issue 2, I tried So I think something must have been fixed since you filed this issue. But please do reopen if you're still hitting these issues. |
Here are a couple of issues in incubator-mxnet/example/image-classification/benchmark_score.py.
Both prevent the script from running.
--> Issue #1
def get_symbol(network, batch_size):
image_shape = (3,299,299) if network == 'inception-v3' else (3,224,224)
num_layers = 0
get_symbol() for vgg16 doesn't accept a zero value for the number of layers.
Quick fix: insert this after "num_layers = 0"
if network=='vgg':
num_layers=16
Or use the same solution as for resnet (split and extract number of layers)
--> Issue #2
devs = [mx.gpu(0)] if len(get_gpus()) > 0 else []
get_gpus() relies on nvidia-smi which is not installed on machines that don't have GPUs (say, c4 instances on AWS).
The text was updated successfully, but these errors were encountered: