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

FSNS demo #103

Open
sne21star opened this issue Oct 28, 2020 · 3 comments
Open

FSNS demo #103

sne21star opened this issue Oct 28, 2020 · 3 comments

Comments

@sne21star
Copy link

When preparing the dataset for the FSNS demo it says to run this command: python swap_classes.py <gt_file> <output_file_name> 0 133. What exactly is the gt_file?

@Bartzi
Copy link
Owner

Bartzi commented Oct 28, 2020

For the demo, you do not need to do this.
However, if you try to prepare data for training, you'll need to do this. gt_file refers to the file that is produced by the script tfrecord_to_image.py

@sne21star
Copy link
Author

sne21star commented Oct 28, 2020

Yes I was able to get that part working thank you. Also did you ever get this error before and know how to solve it?
Traceback (most recent call last):
File "/content/drive/My Drive/Colab Notebooks/see/chainer/train_fsns.py", line 169, in
updater = MultiprocessParallelUpdater(train_iterators, optimizer, devices=args.gpus)
File "/usr/local/lib/python3.6/dist-packages/chainer/training/updaters/multiprocess_parallel_updater.py", line 145, in init
assert len(iterators) == len(devices)
AssertionError

Sorry I think I fixed that ^ error with using standardupdater but now I can't seem it run it
updater = StandardUpdater(train_iterators, optimizer, device=args.gpus) when I changed the multiprocessor to this line.

This is also the command line that I am using:

!python /content/drive/My\ Drive/Colab\ Notebooks/see/chainer/train_fsns.py /content/drive/My\ Drive/Colab\ Notebooks/see/fsns_labels/curriculum.json /content/drive/My\ Drive/Colab\ Notebooks/see/fsns_labels --char-map /content/drive/My\ Drive/Colab\ Notebooks/see/datasets/fsns/fsns_char_map.json. --blank-label 0 -b 2 --gpu 0

@Bartzi
Copy link
Owner

Bartzi commented Oct 29, 2020

okay, what is your new error? Is it the one in the other issue?

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