Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Troubleshooting ModuleNotFoundError when loading the generator
  • Loading branch information
codeslord authored Nov 27, 2024
1 parent 71aead5 commit 78e15fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,22 @@ Go to the [Latest Release](https://github.com/huggingface/meshgen/releases/lates

# Usage

- Press `N` -> `MeshGen` (or View -> Sidebar -> Select the MeshGen tab)
- Press `N` -> `MeshGen` (or `View` -> `Sidebar` -> Select the `MeshGen` tab)
- Click `Load Generator` (this will take a while)
- Enter a prompt, for example: `Create a 3D obj file using the following description: a desk`
- Click `Generate Mesh`

# Troubleshooting

- ModuleNotFoundError when loading generator:
- Go to Scripting and give the following command in the Python Interactive Console to get the path to your modules folder
```
>>> bpy.utils.user_resource("SCRIPTS", path="modules")
```
- Install missing modules by specifying target using pip. For example installing PyTorch in Windows with cuda 12.1:
```
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --target=<path-to-your-modules-folder>
```
- Find errors in the console:
- Windows: In Blender, go to `Window` -> `Toggle System Console`
- Mac/Linux: Launch Blender from the terminal
Expand Down

0 comments on commit 78e15fa

Please sign in to comment.