vanstorm9 / yugioh-one-shot-learning

One shot learning (image recognition) on 10,856 unique Yugioh cards
96 stars 19 forks source link

Want to include your ai in a project #5

Open Bismuth10K opened 2 years ago

Bismuth10K commented 2 years ago

Hi there

I'm working on a project with yu gi oh cards and one of the features i want to add is to recognize cards for the user instead of typing the cards and look for it in the database. But i don't know how to start it first because of these errors on Manjaro (i installed the requirements but not the specific versions because it didn't want to). Tell me if you need more info

[bismuth@bismuth-pc-spec yugioh-one-shot-learning-main]$ python3 train.py 
/home/bismuth/.local/lib/python3.10/site-packages/torchvision/transforms/transforms.py:1420: UserWarning: The parameter 'resample' is deprecated since 0.12 and will be removed in 0.14. Please use 'interpolation' instead.
  warnings.warn(
/home/bismuth/.local/lib/python3.10/site-packages/torchvision/transforms/transforms.py:1435: UserWarning: The parameter 'fillcolor' is deprecated since 0.12 and will be removed in 0.14. Please use 'fill' instead.
  warnings.warn(
Loading train dataloader. . .
Traceback (most recent call last):
  File "/home/bismuth/PycharmProjects/yugioh-one-shot-learning-main/train.py", line 287, in <module>
    net = nn.DataParallel(net,device_ids=[0,1,2,3])
  File "/home/bismuth/.local/lib/python3.10/site-packages/torch/nn/parallel/data_parallel.py", line 142, in __init__
    _check_balance(self.device_ids)
  File "/home/bismuth/.local/lib/python3.10/site-packages/torch/nn/parallel/data_parallel.py", line 23, in _check_balance
    dev_props = _get_devices_properties(device_ids)
  File "/home/bismuth/.local/lib/python3.10/site-packages/torch/_utils.py", line 487, in _get_devices_properties
    return [_get_device_attr(lambda m: m.get_device_properties(i)) for i in device_ids]
  File "/home/bismuth/.local/lib/python3.10/site-packages/torch/_utils.py", line 487, in <listcomp>
    return [_get_device_attr(lambda m: m.get_device_properties(i)) for i in device_ids]
  File "/home/bismuth/.local/lib/python3.10/site-packages/torch/_utils.py", line 470, in _get_device_attr
    return get_member(torch.cuda)
  File "/home/bismuth/.local/lib/python3.10/site-packages/torch/_utils.py", line 487, in <lambda>
    return [_get_device_attr(lambda m: m.get_device_properties(i)) for i in device_ids]
  File "/home/bismuth/.local/lib/python3.10/site-packages/torch/cuda/__init__.py", line 361, in get_device_properties
    raise AssertionError("Invalid device id")
AssertionError: Invalid device id

[bismuth@bismuth-pc-spec yugioh-one-shot-learning-main]$ python3 predict.py
Traceback (most recent call last):
  File "/home/bismuth/PycharmProjects/yugioh-one-shot-learning-main/predict.py", line 41, in <module>
    assert os.path.exists(loadPath)
AssertionError

And then i have a few questions, would you mind if i ask them to you ? I want to try implement your ai but i don't know much about ai and i don't know what i can do or not.

I hope i didn't bother you. Have a nice day.