google-research / mixmatch

Apache License 2.0
1.13k stars 163 forks source link

script bug #16

Closed ChenJiaDong9219 closed 4 years ago

ChenJiaDong9219 commented 4 years ago
# Download datasets
CUDA_VISIBLE_DEVICES= ./scripts/create_datasets.py

I used this command and got the following output:

./scripts/create_datasets.py: line 16: Script to download all datasets and create .tfrecord files.
: command not found
./scripts/create_datasets.py: line 18: import: command not found
./scripts/create_datasets.py: line 19: import: command not found
./scripts/create_datasets.py: line 20: import: command not found
./scripts/create_datasets.py: line 21: import: command not found
./scripts/create_datasets.py: line 22: import: command not found
./scripts/create_datasets.py: line 23: import: command not found
from: can't read /var/mail/urllib
from: can't read /var/mail/easydict
from: can't read /var/mail/libml.data
./scripts/create_datasets.py: line 28: import: command not found
./scripts/create_datasets.py: line 29: import: command not found
./scripts/create_datasets.py: line 30: import: command not found
from: can't read /var/mail/tqdm
./scripts/create_datasets.py: line 33: URLS: command not found
./scripts/create_datasets.py: line 34: svhn:: command not found
./scripts/create_datasets.py: line 35: cifar10:: command not found
./scripts/create_datasets.py: line 36: cifar100:: command not found
./scripts/create_datasets.py: line 37: stl10:: command not found
./scripts/create_datasets.py: line 38: syntax error near unexpected token `}'
./scripts/create_datasets.py: line 38: `}'

should there be something after "=" instead of a space and the python script?

david-berthelot commented 4 years ago

Seems like the script didn't use python, does your script still start with

#!/usr/bin/env python

You could also try (after doing source env3/bin/activate):

CUDA_VISIBLE_DEVICES= python ./scripts/create_datasets.py
ChenJiaDong9219 commented 4 years ago

@david-berthelot it works, thank you!