Closed aprudnikoff closed 2 weeks ago
The lines about x for backend 'tensorflow' is already registered
is likely because you're importing both a -node-gpu
and -node
version:
const tf = require('@tensorflow/tfjs-node-gpu');
const Upscaler = require('upscaler/node');
Update Upscaler
to be the node-gpu
flavor:
const tf = require('@tensorflow/tfjs-node-gpu');
const Upscaler = require('upscaler/node-gpu');
However, that probably won't resolve the second part of your error, which I've never seen before.
I tried reproducing the error on Vast AI, however, I'm getting a different error: TypeError: (0 , util_1.isNullOrUndefined) is not a function
. Is there a way that you could turn your Dockerfile into an image that you could share, so that we're definitely working off the same system?
Other ideas:
2x
or 4x
models?esrgan-slim
or esrgan-medium
?console.log(model)
to see what it reports.The only one simple change made the trick for me, require('upscaler/node-gpu')
As I remember, it wasn't clearly documented. Can't check now since website seems down.
Thank you very much for clarification.
Describe the bug I'm already using upscalerJS/node locally on macbook@cpu and it works fine. Now I would like to improve performance and run my setup on vast.io server at GPU but got stuck with an issue. This is my code simplified as much as possible. Indeed it's pretty equal to an example from the website.
But I get the following exceptional output:
Expected behavior Upscaling should work as expected without errors.
Additional details On vast.ai I use the following image as a base
nvidia/cuda:11.6.1-runtime-ubuntu20.04
And then add some things that are missing in the base image: