joeyballentine / Material-Map-Generator

Easily create AI generated Normal maps, Displacement maps, and Roughness maps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why no install instructions?

microfx opened this issue · comments

This is frustrating...

This repo assumes you have preexisting knowledge of how to install python and python dependencies. I'm sure you can find plenty of guides for how to that elsewhere. Then just install the dependencies I mention in the readme.

Yeah ... doesn't run. AttributeError: module 'cv2' has no attribute 'cv2' it's installed.

img = cv2.imread(path, cv2.cv2.IMREAD_COLOR)

Change this line to change the cv2.cv2 to just a single cv2. No clue why that's like that, i should probably remove it

thx... now the next problem - probably to do with pathes not being set correctly?

FileNotFoundError: [Errno 2] No such file or directory: 'utils/models/1x_NormalMapGenerator-CX-Lite_200000_G.pth'

It probably has to do with what path you're running the script from. Make sure in your terminal you've changed the directory to the root of the repo.

Apologies for the issues, this is kinda old and unmaintained

I am using Codeformer for dependency
https://github.com/sczhou/CodeFormer

That doesn't matter. You must run the script from the tour directory of the repo or it won't be able to find the files. At least, I'm assuming that's what the issue is. Please try this