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

error:03000086:digital envelope routines::initialization error #135

Closed
inhahe opened this issue Nov 19, 2022 · 5 comments
Closed

error:03000086:digital envelope routines::initialization error #135

inhahe opened this issue Nov 19, 2022 · 5 comments

Comments

@inhahe
Copy link

inhahe commented Nov 19, 2022

I just installed yarn.

When trying to run the frontend using "yarn start" or trying to do "yarn build" on Windows 10, I get an error:

D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app>"C:\Program Files\nodejs\node_modules\corepack\shims\yarn" start
i 「wds」: Project is running at http://192.168.56.1/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\public
i 「wds」: 404s will fallback to /
Starting the development server...

D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\react-scripts\scripts\start.js:19
throw err;
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\webpack\lib\NormalModule.js:417:16)
at D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\webpack\lib\NormalModule.js:452:10
at D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\webpack\lib\NormalModule.js:323:13
at D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at D:\py\lama-cleaner\lama-cleaner-main\lama-cleaner-main\lama_cleaner\app\node_modules\babel-loader\lib\index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.12.1


I want to modify the server code to not be a server and to run on automatically modified images with automatically generated masks, the only reason I'm trying to run the frontend is to try to figure out some default/good values for some of the config variables:

config = Config(
ldm_steps=form["ldmSteps"],
ldm_sampler=form["ldmSampler"],
hd_strategy=form["hdStrategy"],
zits_wireframe=form["zitsWireframe"],
hd_strategy_crop_margin=form["hdStrategyCropMargin"],
hd_strategy_crop_trigger_size=form["hdStrategyCropTrigerSize"],
hd_strategy_resize_limit=form["hdStrategyResizeLimit"],
prompt=form["prompt"],
use_croper=form["useCroper"],
croper_x=form["croperX"],
croper_y=form["croperY"],
croper_height=form["croperHeight"],
croper_width=form["croperWidth"],
sd_mask_blur=form["sdMaskBlur"],
sd_strength=form["sdStrength"],
sd_steps=form["sdSteps"],
sd_guidance_scale=form["sdGuidanceScale"],
sd_sampler=form["sdSampler"],
sd_seed=form["sdSeed"],
cv2_flag=form["cv2Flag"],
cv2_radius=form['cv2Radius']
)

@Sanster
Copy link
Owner

Sanster commented Nov 19, 2022

I found a nice project that may meet your needs. advimman/lama#69 (comment)

@inhahe
Copy link
Author

inhahe commented Nov 19, 2022 via email

@fiskbil
Copy link
Contributor

fiskbil commented Nov 19, 2022

Change your package.json file so that the scripts section says

    "start": "react-scripts --openssl-legacy-provider start",
    "build": "cross-env GENERATE_SOURCEMAP=false react-scripts --openssl-legacy-provider build",

This will fix this this issue. Alternatively downgrade to node.js v16.

@Sanster
Copy link
Owner

Sanster commented Nov 19, 2022

@inhahe Sounds like you want to do outpainting, here is the example from OpenAI Dalle2

2022-11-19.21.04.55.mov

LaMa model does not suitable for this task, you may check stablediffusion-infinity project.

Girl.with.a.Pearl.Earring.mp4

@Sanster
Copy link
Owner

Sanster commented Nov 23, 2022

In fact, if you don't want to develop front-end code, you do not need to compile front-end code, it's pre-compiled in the git repository, just start the server from the git repository root dir

python3 main.py --model lama

@Sanster Sanster closed this as completed Nov 25, 2022
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

3 participants