Comments (6)
Could you share with us your training command? Could you train a pix2pix/cyclegan model on our provided dataset?
from pytorch-cyclegan-and-pix2pix.
@junyanz I have tried the following training command with your provided dataset:
facades dataset (400 training image pairs, 256×256):
python train.py --dataroot ./../datasets/facades --name facades_cyclegan --model cycle_gan --pool_size 50 --loadSize 128 --fineSize 128
Out of memory, when the loadSize and fineSize were further reduced to 64, out of memory disappeared
maps dataset (1096 training image pairs, 600×600):
python train.py --dataroot ./../datasets/maps --name maps_cyclegan --model cycle_gan --pool_size 50 --loadSize 128 --fineSize 128
Out of memory, when the loadSize and fineSize were further reduced to 64, out of memory disappeared
My own dataset (4821 training image pairs, 512×512):
python train.py --dataroot ./../datasets/modcn --name modcn_cyclegan --model cycle_gan --pool_size 50 --loadSize 128 --fineSize 128
Out of memory, when the loadSize and fineSize were further reduced to 64, out of memory disappeared
Besides, new errors appeared when loadSize and fineSize are set to 64. The error messages are repeated recurring during training without terminate the program...
Exception in user code:
------------------------------------------------------------
Traceback (most recent call last): File "/home/bwt/anaconda2/lib/python2.7/site-packages/visdom/__init__.py", line 228, in _send data=json.dumps(msg), File "/home/bwt/anaconda2/lib/python2.7/site-packages/requests/api.py", line 110, in post return request('post', url, data=data, json=json, **kwargs) File "/home/bwt/anaconda2/lib/python2.7/site-packages/requests/api.py", line 56, in request return session.request(method=method, url=url, **kwargs) File "/home/bwt/anaconda2/lib/python2.7/site-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/home/bwt/anaconda2/lib/python2.7/site-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/home/bwt/anaconda2/lib/python2.7/site-packages/requests/adapters.py", line 487, in send raise ConnectionError(e, request=request) ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f62f5560c50>: Failed to establish a new connection: [Errno 111] Connection refused',))
from pytorch-cyclegan-and-pix2pix.
When I try to use your Torch version CycleGAN, the program runs well during training
My own dataset (4821 training image pairs, 512×512):
DATA_ROOT=./../datasets/modcn name=modcn_model th train.lua loadSize=512 fineSize=512
I don't know why PyTorch and Torch have such great difference for CycleGAN.......
from pytorch-cyclegan-and-pix2pix.
- GPU memory: Interesting. I ran the command on my machine, and only used 1294MB on my GTX 1080. Which pytorch version are you using now?
python train.py --dataroot ./../datasets/facades --name facades_cyclegan --model cycle_gan --pool_size 50 --loadSize 128 --fineSize 128
- Error messages: Error message is related to visdom rather than GPU memory. You can start the visdom visualizatoin server by running
python -m visdom.server
. You can disable the visdom visualization by adding--display_id 0
from pytorch-cyclegan-and-pix2pix.
@junyanz Thanks for your help that the second problem was solved.
I'm using pytorch that depend on torch._version_=0.1.11+2b56711, the pytorch was installed a week ago so that it should be new. Now, I found when I killed all python process with command killall python
, all the scripts aforementioned run successfully with loadSize=128 and fineSize=128, and the command nvidia-smi
shows that 5033MiB/8110MiB for Memory-Usage.
But out of memory still raised with the default loadSize=286 and fineSize=256, scripts as follow:
python train.py --dataroot ./../datasets/facades --name facades_cyclegan --model cycle_gan --pool_size 50 --loadSize 286 --fineSize 256
from pytorch-cyclegan-and-pix2pix.
I am not sure why. I used 1300 MB GPU memory for 128/128, and 2218 MB GPU memory for 286/256.
from pytorch-cyclegan-and-pix2pix.
Related Issues (20)
- 请问作者 HOT 1
- 生成图像的质量太低怎么办
- 请问对于输入图像大小不一样时,该代码中是否对图像进行预处理了呢?
- CPU
- It gets stuck when running for more than 20 rounds, but the graphics card is still running. What is the reason for this?
- Is the Model Capable of Processing and Maintaining Consistent Output Sizes Across Varied Image Dimensions? HOT 6
- 请问测试集应该下载保存到什么文件夹呢,每次都会报错'./checkpoints\\facades_label2photo_pretrained\\latest_net_G.pth'
- Hello, HOT 1
- introducing CycleGAN-Turbo and pix2pix-turbo
- Add ROI specific loss function to generator
- Error testing my own dataset using pix2pix
- How can I train with multi-input like (A1 ,A2……)->B? HOT 1
- How to finish Scene Text Editing task using Pix2Pix
- Input images are stretched when using test HOT 1
- Error in combine_A_and_B.py for TIFF-files
- Training Parameters or Architecture Settings Recommendations
- Perform interpolation between Input and Output
- value of lambda_identity not to change the color
- good
- The test results with pix2pix were poor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-cyclegan-and-pix2pix.