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

Hello I am having issue in Maya when browsing a photo #1

Open
hariskhan101 opened this issue Jul 23, 2023 · 30 comments
Open

Hello I am having issue in Maya when browsing a photo #1

hariskhan101 opened this issue Jul 23, 2023 · 30 comments

Comments

@hariskhan101
Copy link

I get the error
"Error in Generate Mesh"
"File not Found"
whenever I try to browse the image in maya.

What could be the issue regarding this problem? Please Assist me in this
Thanks :)

@Yuqian-He
Copy link
Owner

Hi, sorry for the late reply. It seems like you installed it in the wrong path.

Could you try sys.executable in your Maya Script Editor(Python), and print it out to check where is your Maya path?

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 24, 2023 via email

@Yuqian-He
Copy link
Owner

Try to install it in F:\Maya-2022\Maya2022, and then check if it is possible to run.

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 25, 2023 via email

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@Yuqian-He
Copy link
Owner

Here is my path in root Maya:
Maya2022|--Alenv
|--released_v0.1

and in those two folders, mine is:
Alenv |--conda-meta
|--DLLs
|--include
......(and so on)

released_v0.1 |-- DFDN
|-- emotionNet
|-- faceRender
.....(and so on)

Check if your path is like this.

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@hariskhan101
Copy link
Author

Traceback (most recent call last):

File "", line 106, in generate_mesh

File "", line 42, in showMesh

RuntimeError: File not found.

This is the error

Screenshot 2023-07-26 235532

@Yuqian-He
Copy link
Owner

Could you check if anything was generated in ”released_v0.1/results“? If the AI module goes well, it will create a folder with your image name. Click it to check if the "result.obj" file is in that folder.

@Yuqian-He
Copy link
Owner

I did a lot of print in bridge.py, could you also check if there is anything printed out during the script running? It can help to check the path.

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@Yuqian-He
Copy link
Owner

Okayy, that means the Ai model didn't run successfully. Could you describe it in more detail? After you run the Bridge.py in Maya script editor, did you see a window pop up? If you did, after you select the image, what information on the editor does it print out?

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@Yuqian-He
Copy link
Owner

Sorry, I cant see the image. Could you send it again?

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 26, 2023 via email

@Yuqian-He
Copy link
Owner

Sorry, I still cant see the image.

What if you try to put your image in "released_v0.1/samples" ?

This code is a long time ago, and I use Windows. But now I changed my computer to MAC, so I cant test it until I get another Windows computer. Sorry for that. It may be the path is wrong. Sorry for that.

If you put your image in "released_v0.1/samples" and run successfully, I will check my code after I have a Windows computer. (This AI module can only run in Windows)

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 27, 2023 via email

@Yuqian-He
Copy link
Owner

No worries, cuz the code is just a course project, some functions may not be completed. And I just test it using my computer. Let me know if it is a success after you put your image in "released_v0.1/samples" path.

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 27, 2023 via email

@hariskhan101
Copy link
Author

hariskhan101 commented Jul 28, 2023 via email

@Yuqian-He
Copy link
Owner

Hi, sorry for the late reply. I still cannot test it as I don't have a Windows computer.

The path should be alright. if you put all the stuff under F:/maya-2022/maya2022/.

You can check my line 28 output, it will show the input image path, check the Maya script editor to see if the output is correct compared with your own input image path.

It seems AI module cant find the image. Sorry, I hardly cant see what exactly the problem is as I cant test it by myself.

@hariskhan101
Copy link
Author

hariskhan101 commented Aug 2, 2023 via email

@Yuqian-He
Copy link
Owner

Yes, an NVIDIA graphics card is necessary for running CUDA.

@hariskhan101
Copy link
Author

hariskhan101 commented Oct 21, 2023 via email

@Yuqian-He
Copy link
Owner

Hi, sorry I don't have the script and env for this project. You can download my virtual env as I mentioned in README. All the package versions should be there. Thanks!

@hariskhan101
Copy link
Author

hariskhan101 commented Oct 22, 2023 via email

@Yuqian-He
Copy link
Owner

Hi sorry for the delay.
This error means you dont have CUDA installed. First, check if CUDA is installed, which should be typically installed separately from PyTorch. After that, check if you installed NVIDIA correctly. Cuz, cuDNN is a GPU-accelerated library for deep neural networks. It is often required for running PyTorch with CUDA, but is a library when you install NVIDIA correctly.

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

2 participants