Giter VIP home page Giter VIP logo

Comments (5)

liudongliangHI avatar liudongliangHI commented on September 21, 2024 3

I also encountered the same problem, but as the author said you can debug the prediction_for_input.py file between line 231 and line 266 by using basic print function. In short, you can try to modify line 267

           except:
                Kcat_value = 'None'

to

except Exception as e:
       print(repr(e))
       Kcat_value = 'None'

Then see what's wrong.

for me, Error is

RuntimeError('Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)')

so, just change all tensors to be the same device, you can fix it.

fingerprints = torch.LongTensor(fingerprints).to(device)
adjacency = torch.FloatTensor(adjacency).to(device)
words = torch.LongTensor(words).to(device)

Of course, you may also encounter other error messages, and you need corresponding solutions.

from dlkcat.

feiranl avatar feiranl commented on September 21, 2024

Could you print out the packages you have installed by running conda list or pip list?

from dlkcat.

shadowlyu avatar shadowlyu commented on September 21, 2024

mmexport1656133458265
mmexport1656133455905
mmexport1656133458265

from dlkcat.

le-yuan avatar le-yuan commented on September 21, 2024

Hi, have you resolved this issue? Now that you can get the Kcat prediction result, I think you have installed all the packages successfully, or the program would throw out an error about "package not found". It is very weird that you got the result 'None' because many users can run the example easily across various systems. My suggestion is that: (1) Reinstall DLKcat and run the example again by yourself; (2) With the help from your colleagues, run DLKcat example using their computer; (3)you can debug the prediction_for_input.py file between line 231 and line 266 by using basic print function. If uncommon print is out, then you can know how did this issue happen.

from dlkcat.

shadowlyu avatar shadowlyu commented on September 21, 2024

from dlkcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.