Giter Club home page Giter Club logo

Comments (6)

fredzzhang avatar fredzzhang commented on August 20, 2024

Hi @SherlockHolmes221,

pocket is not a published package. Please follow the installation instructions here

Fred.

from upt.

SherlockHolmes221 avatar SherlockHolmes221 commented on August 20, 2024

Thx

from upt.

leijue222 avatar leijue222 commented on August 20, 2024

I followed this step and run mnist.py successful. But under UPT, I still failed with pocket environment.

(pocket) ming-t@mingt-Z490-UD:UPT/pocket$ conda develop pocket
added /media/ming-t/Deng/relation_mppe/HOI-UPT/pocket-lib/pocket
completed operation for: /media/ming-t/Deng/relation_mppe/HOI-UPT/pocket-lib/pocket

(pocket) ming-t@mingt-Z490-UD:UPT/pocket$ python inference.py --resume checkpoints/upt-r50-vcoco.pt --image-path ./assets/umbrella.jpeg --action 0 --dataset vcoco
Traceback (most recent call last):
  File "inference.py", line 12, in <module>
    import pocket
ModuleNotFoundError: No module named 'pocket'

from upt.

fredzzhang avatar fredzzhang commented on August 20, 2024

Hi @leijue222,

Can you print out the system paths in Python and attach the results?

import sys
print(sys.path)

from upt.

leijue222 avatar leijue222 commented on August 20, 2024

['', '/home/ming-t/anaconda3/envs/pocket/lib/python38.zip', '/home/ming-t/anaconda3/envs/pocket/lib/python3.8', '/home/ming-t/anaconda3/envs/pocket/lib/python3.8/lib-dynload', '/home/ming-t/anaconda3/envs/pocket/lib/python3.8/site-packages', '/media/ming-t/Deng/relation_mppe/HOI-UPT/pocket-lib/pocket', '/media/ming-t/Deng/relation_mppe/HOI-UPT/pocket']

image

Thanks, I solved the environment problem by moving the pocket directory to the root directory

from upt.

fredzzhang avatar fredzzhang commented on August 20, 2024

Ok, that's good to hear. You seem to have added multiple copies of the pocket library to the system path. That might have caused some confusion.

'/media/ming-t/Deng/relation_mppe/HOI-UPT/pocket-lib/pocket'
'/media/ming-t/Deng/relation_mppe/HOI-UPT/pocket'

In general, it's probably better to keep pocket in a different position other than where your projects are, just as you did in the end.

from upt.

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.