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

ValueError: Attemp to get argmin of an empty sequence #14

Open
nhd1207 opened this issue Sep 13, 2021 · 3 comments
Open

ValueError: Attemp to get argmin of an empty sequence #14

nhd1207 opened this issue Sep 13, 2021 · 3 comments

Comments

@nhd1207
Copy link

nhd1207 commented Sep 13, 2021

Hi, I'm currently encountering 2 problems:

  1. When installing requirements.txt
    Here is the error
    ERROR: Could not find a version that satisfies the requirement torch==0.4.1 (from -r requirements.txt (line 4)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0) ERROR: No matching distribution found for torch==0.4.1 (from -r requirements.txt (line 4))

So I have to install libraries manually, which I have no idea if it creates any conflicts.
2. When running Jodie
Here is the error:
File "jodie.py", line 34, in <module> args.gpu = select_free_gpu() File "/root/jodie/library_models.py", line 223, in select_free_gpu return str(gpus[np.argmin(mem)]) File "<__array_function__ internals>", line 5, in argmin File "/usr/local/lib/python3.8/dist-packages/numpy/core/fromnumeric.py", line 1276, in argmin return _wrapfunc(a, 'argmin', axis=axis, out=out) File "/usr/local/lib/python3.8/dist-packages/numpy/core/fromnumeric.py", line 54, in _wrapfunc return _wrapit(obj, method, *args, **kwds) File "/usr/local/lib/python3.8/dist-packages/numpy/core/fromnumeric.py", line 43, in _wrapit result = getattr(asarray(obj), method)(*args, **kwds) ValueError: attempt to get argmin of an empty sequence

Please take a look and help me solve this. Thank you.

@lmq-debug
Copy link

I have the same problem

@lmq-debug
Copy link

请问你解决了嘛

@sophiazhi
Copy link

To fix problem 2, I switched to using GPU. I also ran into problem 1 with both Python 3.6 and 3.8, but I changed the requirement to torch==1.0.0 with Python 3.6 and it seems to work fine.

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

3 participants