Giter Site home page Giter Site logo

While ruuning the code, I got this types of problem. Could you please tell me the solution about neighborhood-attention-transformer HOT 11 CLOSED

Mehulk43 avatar Mehulk43 commented on June 30, 2024
While ruuning the code, I got this types of problem. Could you please tell me the solution

from neighborhood-attention-transformer.

Comments (11)

alihassanijr avatar alihassanijr commented on June 30, 2024

Can you confirm the path /dataset/Imagenet exists?

from neighborhood-attention-transformer.

Mehulk43 avatar Mehulk43 commented on June 30, 2024

yes, it exits

Can you confirm the path /dataset/Imagenet exists?

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 30, 2024

I'm pretty sure that's the problem, it's literally failing at checking if the dataset path exists.

from neighborhood-attention-transformer.

Mehulk43 avatar Mehulk43 commented on June 30, 2024

I'm pretty sure that's the problem, it's literally failing at checking if the dataset path exists.

I am getting like this " ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) "
Not for the dataset.

I have already tried to give the full path of dataset.
The same is happened.

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 30, 2024

It is literally failing here:

assert os.path.exists(root)
AssertionError

Also, could you clarify what the "full path of the dataset" is?
Can you please ls /dataset/ImageNet and share the output?

from neighborhood-attention-transformer.

Mehulk43 avatar Mehulk43 commented on June 30, 2024

It is literally failing here:

assert os.path.exists(root)
AssertionError

Also, could you clarify what the "full path of the dataset" is? Can you please ls /dataset/ImageNet and share the output?

I have created a folder name " dataset" in classification folder and put the imagnet in dataset folder.

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 30, 2024

In that case it should be dataset/ImageNet and not /dataset/ImageNet (no forward slash in the beginning.)

from neighborhood-attention-transformer.

Mehulk43 avatar Mehulk43 commented on June 30, 2024

In that case it should be dataset/ImageNet and not /dataset/ImageNet (no forward slash in the beginning.)

Thanks you for replying fast.

Yeah I know that, I have tried that too.

and i have also given full path name like
~/Downloads/MyProject/[Neighborhood-Attention-Transformer/classification/dataset/ImageNet

And I have also tried like
./dataset/ImageNet

from neighborhood-attention-transformer.

stevenwalton avatar stevenwalton commented on June 30, 2024

@Mehulk43 I can confirm that this is a path issue. It is an assertion error in timm on the create_dataset function. You may be confused because we have left /dataset/ImageNet in as an example of where that might be. It's pretty unlikely that's where you have ImageNet at. I suggest using readlink -f <insert ImageNet folder path here> and paste that into the path argument.

Also note that any path starting with ~/ is actually relative. ~/ is the same as the $HOME variable. Full paths start with / which is root directory.

from neighborhood-attention-transformer.

Mehulk43 avatar Mehulk43 commented on June 30, 2024

Thank you,

I will try and upload the screenshot if I get the error again.

from neighborhood-attention-transformer.

alihassanijr avatar alihassanijr commented on June 30, 2024

Closing this due to inactivity. If you still have questions feel free to open it back up.

from neighborhood-attention-transformer.

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.