Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError in /scripts/detection/ssd/eval_ssd.py #176

Closed
yunfanLu opened this issue Jun 21, 2018 · 2 comments
Closed

SyntaxError in /scripts/detection/ssd/eval_ssd.py #176

yunfanLu opened this issue Jun 21, 2018 · 2 comments

Comments

@yunfanLu
Copy link

/data/yunfan.lu/home/anaconda2/envs/py3/bin/python /data/yunfan.lu/App/github.data/gluon-cv/scripts/detection/ssd/eval_ssd.py
  File "/data/yunfan.lu/App/github.data/gluon-cv/scripts/detection/ssd/eval_ssd.py", line 59
    batch_size, False, last_batch='keep', num_workers=num_workers)
    ^
SyntaxError: positional argument follows keyword argument
def get_dataloader(val_dataset, data_shape, batch_size, num_workers):
    """Get dataloader."""
    width, height = data_shape, data_shape
    batchify_fn = Tuple(Stack(), Pad(pad_val=-1))
    val_loader = gluon.data.DataLoader(
        val_dataset.transform(SSDDefaultValTransform(width, height)), batchify_fn=batchify_fn,
        batch_size, False, last_batch='keep', num_workers=num_workers)
    return val_loader
@yunfanLu
Copy link
Author

yunfanLu commented Jun 21, 2018

def get_dataloader(val_dataset, data_shape, batch_size, num_workers):
    """Get dataloader."""
    width, height = data_shape, data_shape
    batchify_fn = Tuple(Stack(), Pad(pad_val=-1))
    val_loader = gluon.data.DataLoader(
        val_dataset.transform(SSDDefaultValTransform(width, height)), batchify_fn=batchify_fn,
        batch_size=batch_size, shuffle=False, last_batch='keep', num_workers=num_workers)
    return val_loader

@zhreshold
Copy link
Member

Fixed, please use master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants