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

Regarding the use of start.cmd #88

Open
mflyskym1 opened this issue Feb 20, 2024 · 15 comments
Open

Regarding the use of start.cmd #88

mflyskym1 opened this issue Feb 20, 2024 · 15 comments
Labels
Question Case is about a query.

Comments

@mflyskym1
Copy link

Description

Hello, my friend

I encountered a problem while using Upscaler and sought help. I sent you an email but didn't see your reply! The specific issues are as follows:

I have downloaded the latest version of Upscaler 0.7 and also configured the environment variables for the OS system. I have installed the C++runtime library support and video processing plugins, but an error occurred when running start.cmd (as shown in the picture below). At the same time, I searched for the ini \ windows.ps1 file but couldn't find the problem. Please follow my path and optimize how to write the start.cmd and run.bat files.

Thank you.
Waiting for your reply message online!
The storage path for resource files is as follows: D: \ AI Upscaler \ upscaler main \ main
微信图片_20240220162534

Current Researched Artifacts [COMPULSORY]

Hello, my friend

I encountered a problem while using Upscaler and sought help. I sent you an email but didn't see your reply! The specific issues are as follows:

I have downloaded the latest version of Upscaler 0.7 and also configured the environment variables for the OS system. I have installed the C++runtime library support and video processing plugins, but an error occurred when running start.cmd (as shown in the picture below). At the same time, I searched for the ini \ windows.ps1 file but couldn't find the problem. Please follow my path and optimize how to write the start.cmd and run.bat files.

Thank you.
Waiting for your reply message online!
The storage path for resource files is as follows: D: \ AI Upscaler \ upscaler main \ main
微信图片_20240220162534

@mflyskym1 mflyskym1 added Discussion Matter is still in discussion. No commitment yet. Question Case is about a query. labels Feb 20, 2024
@mflyskym1
Copy link
Author

Hello teacher:I downloaded the latest version of upscaler models v0.7.0 according to your user manual and installation instructions. I also set the system environment variable and configured the path to start.cmd, but upscaler still did not run successfully.Please follow my path and optimize how to write the start.cmd and run.bat files.
Thank you very much!
My personal PC machine is an old machine from 5 years ago, with the following configuration:
Operating system OS Windows Version 10,
CPU Intel (R) Core (TM) i7-9700 CPU @ 3.00GHz,
RAM 16 GB
Graphics card: NVIDIA GeForce GTX 1660

Resource file storage path:D:\AI Upscaler\Upscaler-main\start.cmd

@Joly0
Copy link
Collaborator

Joly0 commented Feb 20, 2024

Hey, thats probably an issue with this line of code

Powershell.exe -NoProfile -Command "Get-Help $PSScriptRoot\windows.ps1"

Could you please adjust it to this:
Powershell.exe -NoProfile -Command "Get-Help "$PSScriptRoot\windows.ps1""

Otherwise running start.cmd without any parameters just shows the normal help instructions.

@mflyskym1
Copy link
Author

Thank you for your reply. Please follow the path in my previous post to modify the init/windows.ps1 file or provide a start.cmd file. Thank you very much!

@mflyskym1
Copy link
Author

嘿,这可能是这行代码的问题

Powershell.exe -NoProfile -Command "Get-Help $PSScriptRoot\windows.ps1"

您能否将其调整为: Powershell.exe -NoProfile -Command "Get-Help "$PSScriptRoot\windows.ps1""

否则,运行不带任何参数的start.cmd仅显示正常的帮助说明。


According to your prompt, I have modified the \ windows.ps1 file and it still shows an error! Please help!
11
12

@Joly0
Copy link
Collaborator

Joly0 commented Feb 20, 2024

My bad, github made some characters disappear. You have to enter this code:

Powershell.exe -NoProfile -Command "Get-Help `"$PSScriptRoot\windows.ps1`""

@mflyskym1
Copy link
Author

嘿,这可能是这行代码的问题

Powershell.exe -NoProfile -Command "Get-Help $PSScriptRoot\windows.ps1"

您能否将其调整为: Powershell.exe -NoProfile -Command "Get-Help "$PSScriptRoot\windows.ps1""

否则,运行不带任何参数的start.cmd仅显示正常的帮助说明。


Please modify the start.cmd and run.bat files according to my storage path (D: \ AI Upscaler \ upscaler main \ main \ start. cmd). Thank you very much!

@mflyskym1
Copy link
Author

我的错,github 使一些字符消失了。您必须输入此代码:

Powershell.exe -NoProfile -Command "Get-Help `"$PSScriptRoot\windows.ps1`""

The problem still exists, it doesn't seem like it's a problem with this line of code!
13
14

@Joly0
Copy link
Collaborator

Joly0 commented Feb 20, 2024

I got it working. Change that line to:

Powershell.exe -NoProfile -Command "Get-Help '$PSScriptRoot\windows.ps1'"

and change this line

Powershell.exe -NoProfile -Command "Get-Help $PSScriptRoot\windows.ps1 -full"

to

Powershell.exe -NoProfile -Command "Get-Help '$PSScriptRoot\windows.ps1' -full"

@hollowaykeanho
Copy link
Owner

确定一下: 当您打开包装时,有移动那start.cmd吗? 开头的地址是有 main (D: \ AI Upscaler \ upscaler main \ main) 而现在是没有的 (D: \ AI Upscaler \ upscaler main)。文件地址是不能移动的。

如果需要操控,您必须要在start.cmd文件夹里 (如图):

2024-02-20_17-23


Translate to English

To clarify one thing: upon upacking, is there any movement to start.cmd file? The ticket starts with a main (D: \ AI Upscaler \ upscaler main \ main) in the path but later's troubleshooting effort shows none (D: \ AI Upscaler \ upscaler main). Files are not movable though.

If you wish to operate, you have to be located inside the start.cmd directory (as shown in screenshot).


site-note:

@Joly0 , could you replicate the v0.7.0 download and run the start.cmd on your side with screenshot please? It will be easier to communicate.

This problem is interim as I'm re-coding the scripts to a newer version (tracking different issue - see init/start.sh.ps1).

Thanks in adv!

@Joly0
Copy link
Collaborator

Joly0 commented Feb 20, 2024

Hey @hollowaykeanho i pulled fresh from main branch and was able to replicate the issue, when running start.cmd without parameters and if the path to the .cmd or the .ps1 script has whitespaces in it. With the updated commands from my last message, it works no issue

@hollowaykeanho
Copy link
Owner

@Joly0. No problem. Thanks ya. =) Please help guide this user while I attempt to complete the new scripts with the parallel execution and batch processing.

@mflyskym1
Copy link
Author

确定一下:当你打开包装时,有移动那吗start.cmd? 开头的地址是有main ( D: \ AI Upscaler \ upscaler main \ main) 而现在是没有的( D: \ AI Upscaler \ upscaler main)。文件地址是不能移动的。

如果需要控制器,您必须在start.cmd文件夹里(如图):

2024-02-20_17-23

翻译成英文

澄清一件事:打包后,是否有任何需要start.cmd归档的动作?该票证以路径中的main ( )开头,但后来的故障排除工作显示没有 ( )。但文件不可移动。D: \ AI Upscaler \ upscaler main \ main``D: \ AI Upscaler \ upscaler main

如果您想进行操作,您必须位于该start.cmd目录内(如截图所示)。

站点注释:

@Joly0,您可以复制下载并在您这边v0.7.0运行并附上屏幕截图吗?start.cmd沟通会更容易。

这个问题是临时的,因为我正在将脚本重新编码为较新的版本(跟踪不同的问题 - 请参阅init/start.sh.ps1)。

感谢广告!

是的老师,按照您第一个回复的内容,我从新下载了0.7的新版本,调整了存储路径为,D:\AI Upscaler\Upscaler-main,按照@Joly0老师的指导,现在运行start.cmd已经不报错了,您看现在的运行界面是否正确(如截图),按照操作手册,我执行图像放大操作也,,,不成功!怎么办

确定一下: 当您打开包装时,有移动那start.cmd吗? 开头的地址是有 main (D: \ AI Upscaler \ upscaler main \ main) 而现在是没有的 (D: \ AI Upscaler \ upscaler main)。文件地址是不能移动的。

如果需要操控,您必须要在start.cmd文件夹里 (如图):

2024-02-20_17-23

Translate to English

To clarify one thing: upon upacking, is there any movement to start.cmd file? The ticket starts with a main (D: \ AI Upscaler \ upscaler main \ main) in the path but later's troubleshooting effort shows none (D: \ AI Upscaler \ upscaler main). Files are not movable though.

If you wish to operate, you have to be located inside the start.cmd directory (as shown in screenshot).

site-note:

@Joly0 , could you replicate the v0.7.0 download and run the start.cmd on your side with screenshot please? It will be easier to communicate.

This problem is interim as I'm re-coding the scripts to a newer version (tracking different issue - see init/start.sh.ps1).

Thanks in adv!

您好老师,
按照您上一个提示,我下载了最新0.7版本的存储包,并调整了存储路径为D:\AI Upscaler\Upscaler-main,但是start.cmd和ini文件在同一个目录层级,如图1、图2.
我参照@Joly0老师的方法后,运行start.cmd时已经不报错了,如下图3,但运行图片放大处理时,还是不成功,是不是操作不正确啊,请指导!
18

15

16

@mflyskym1
Copy link
Author

我成功了。将该行更改为:

Powershell.exe -NoProfile -Command "Get-Help '$PSScriptRoot\windows.ps1'"

并改变这一行

Powershell.exe -NoProfile -Command "Get-Help $PSScriptRoot\windows.ps1 -full"

Powershell.exe -NoProfile -Command "Get-Help '$PSScriptRoot\windows.ps1' -full"

Thank you very much for your guidance. My friend, there is no error when running start.cmd. Next, how to enlarge the picture or video? Please guide me!
Uploading 15.png…

@hollowaykeanho
Copy link
Owner

如下图3,但运行图片放大处理时,还是不成功,是不是操作不正确啊,请指导!

Translate to English

As shown in 3rd screenshot, to upscale an image, I'm still not able to operate. Please guide.

0.0.7 需要更多的指令。简单的方式是:

$ ./start.cmd --model ultrasharp --scale 4 --format webp --input 图片.jpg

--model 是您要的AI模式。
--scale 是您想放大的倍数 (2 = 2x; 3 = 3x; 4 = 4x)。
--format 是您想要的输出图片模式。
--input 是您的输入图片地址。

请试试看。


Translate to english:

0.0.7 requires additional arguments. The simplest form is:

$ ./start.cmd --model ultrasharp --scale 4 --format webp --input 图片.jpg

--model is your required AI model.
--scale is your upscale ratio (2 = 2x; 3 = 3x; 4 = 4x).
--format is your output format.
--input is your input filepath.

Please try.

@mflyskym1
Copy link
Author

如下图3,但运行图片处理时,还是不成功放大,是不是操作不正确啊,请指导!
翻译成英文
如第三张截图所示,要放大图像,我仍然无法操作。请指导。

0.0.7需要更多的指令。简单的方式是:

$ ./start.cmd --model ultrasharp --scale 4 --format webp --input 图片.jpg

--model是您想要的AI模式。 --scale是您想要放大的倍数(2 = 2x; 3 = 3x; 4 = 4x)。 --format是您想要的输出图片模式。 --input是您的输入图片地址。

请尝试看看。

翻译成英文:

0.0.7需要额外的参数。最简单的形式是:

$ ./start.cmd --model ultrasharp --scale 4 --format webp --input 图片.jpg

--model是你需要的AI模型。 --scale是您的高档比率(2 = 2x;3 = 3x;4 = 4x)。 --format是你的输出格式。 --input是您的输入文件路径。

请尝试。

好的,感谢指导,我尝试一下

@hollowaykeanho hollowaykeanho removed the Discussion Matter is still in discussion. No commitment yet. label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Case is about a query.
Projects
None yet
Development

No branches or pull requests

3 participants