当前位置:网站首页>Problems in deep learning training and testing: error: the following arguments are required: --dataroot, solution: the configuration method of training files and test files
Problems in deep learning training and testing: error: the following arguments are required: --dataroot, solution: the configuration method of training files and test files
2022-07-25 07:26:00 【Saga】
Problems in deep learning training and testing :error: the following arguments are required: --dataroot, The main reason for this problem is , There is a problem between the training configuration file and the test configuration file , See the following for specific solutions .
1、 Configure training files
Before formal training , You need to configure training files in the compiled software , The configuration method I provide here is in Pycharm Compiling software , The configuration method of other compiled software is similar , The specific configuration method is shown below :
(1) Run it first train.py file , At this time, there will be an error prompt , Prompt that you need to configure training files , as follows :

The prompt of error reporting is as follows :error: the following arguments are required: --dataroot

(2) open Run The drop-down menu for , Click on Edit Configurations, as follows :


As shown in the figure above , Enter the following commands in the open edit box and click OK You can add a training Profile :

2、 Start training
After the above steps are ready Terminal Enter the following command in the console to start the training , as follows :
python train.py --dataroot ./datasets/horse2zebra --name horse2zebra_cyclegan --model cycle_gan

The following sample paper after entering , It means that you are training normally :

3、 Configure test files
Similar to the above method , Configure test files , First run the following test.py file , There will also be an error prompt , as follows :


Start configuring test files :



4、 Start testing
stay Terminal Enter the following command in the console , And enter the car to start the test , as follows :
python test.py --dataroot datasets/horse2zebra/testA --name horse2zebra_pretrained --model test --no_dropout

The following sample paper shows that the test is completed , See below :
The above is to solve the problems in deep learning training and testing :error: the following arguments are required: --dataroot Methods , That is, the configuration method of training files and test files , I hope the method I summarized can help you , thank you !
边栏推荐
- Luo min's backwater battle in qudian
- BOM overview
- Common cross domain scenarios
- QT6 with vs Code: compiling source code and basic configuration
- Completely replace the redis+ database architecture, and JD 618 is stable!
- 9大最佳工程施工项目管理系统
- Oracle19 adopts automatic memory management. The AWR report shows that the settings of SGA and PGA are too small?
- Lidar construction map (overlay grid construction map)
- About --skip networking in gbase 8A
- Day by day, month by month | Shenzhen potential technology released the extreme accelerated version of molecular docking engine uni docking
猜你喜欢

Security compliance, non-stop discounts! High quality travel service, "enjoy the road" for you

How to use network installation to deploy multiple virtual servers in KVM environment

Leave the factory and sell insurance

Scavenging vultures or woodpeckers? How to correctly understand short selling

Line generation (matrix ')

Introduction to cesium

12 combination methods and risk interpretation of database architecture optimization (books available)

北京内推 | 微软STCA招聘NLP/IR/DL方向研究型实习生(可远程)

Cluster chat server: summary of project problems

Xinku online | cnopendata shareholder information data of A-share listed companies
随机推荐
Introduction to Manhattan distance
[computer explanation] NVIDIA released geforce RTX Super Series graphics cards, and the benefits of game players are coming!
Elasticserach里delete_by_query的机制是什么?
How to do a good job in safety development?
Lidar construction map (overlay grid construction map)
Security compliance, non-stop discounts! High quality travel service, "enjoy the road" for you
[pytorch] the most common function of view
《游戏机图鉴》:一份献给游戏玩家的回忆录
vulnhub CyberSploit: 1
10 key points and 5 measures for good project management
2022天工杯CTF---crypto1 wp
9 best engineering construction project management systems
Day by day, month by month | Shenzhen potential technology released the extreme accelerated version of molecular docking engine uni docking
Flinkcdc2.0 uses flinksql to collect MySQL
关于GBase 自动关闭连接问题
The idea of the regular crawler of the scratch
深度学习制作数据集时,从长视频中指定每隔多少帧提取一张图像到指定文件路径的方法
Alibaba cloud image address & Netease cloud image
NLP hotspots from ACL 2022 onsite experience
JS cannot get content disposition in headers