Comments (3)
@19990101lrk Sorry for late response. To support 800x800 image, you can modify config as follow:
# model
model = dict(
- generator=dict(out_size=512),
- discriminator=dict(in_size=512),
+ generator=dict(out_size=800),
+ discriminator=dict(in_size=800),
ema_config=dict(
type='ExponentialMovingAverage',
interval=1,
momentum=1. - (0.5**(32. / (ema_half_life * 1000.)))),
loss_config=dict(
r1_loss_weight=10. / 2. * d_reg_interval,
r1_interval=d_reg_interval,
norm_mode='HWC',
g_reg_interval=g_reg_interval,
g_reg_weight=2. * g_reg_interval,
pl_batch_shrink=2))
To train with single-scale image, you can manually convert you image from single channel to three channel by repeat it at color dimension, e.g.
img = Image.open(img_path).convert('RGB')
from mmagic.
@19990101lrk Sorry for late response. To support 800x800 image, you can modify config as follow:
# model model = dict( - generator=dict(out_size=512), - discriminator=dict(in_size=512), + generator=dict(out_size=800), + discriminator=dict(in_size=800), ema_config=dict( type='ExponentialMovingAverage', interval=1, momentum=1. - (0.5**(32. / (ema_half_life * 1000.)))), loss_config=dict( r1_loss_weight=10. / 2. * d_reg_interval, r1_interval=d_reg_interval, norm_mode='HWC', g_reg_interval=g_reg_interval, g_reg_weight=2. * g_reg_interval, pl_batch_shrink=2))To train with single-scale image, you can manually convert you image from single channel to three channel by repeat it at color dimension, e.g.
img = Image.open(img_path).convert('RGB')
Thank you for your answer, I will try to modify it.
from mmagic.
Close due to no response. Please reopen if you need more help.
from mmagic.
Related Issues (20)
- When I run python gradio_PowerPaint.py, it looks for a .bin file in models/unet folder. But the model is a .safetensors file, changing the extension to .bin causes a pickle error. Any workaround?[Bug] HOT 1
- [Feature] PowerPaint training code
- [Bug] Error when running PowerPaint: Entry Not Found for facenet.pth URL HOT 2
- [Bug] Invalid 'input_ids' in position:0 to 75.Expect'[49428,49429,49430,49431,49432,49433,49434,49435,49436,49437] for embedding 'P_obj' but found '[49428,49407]'
- [Feature] Give model different intialization
- [Bug] removal inpainting still include remnants of people HOT 1
- PowerPaint Windows MMCV Error
- PowerPaint Windows MMCV Error?
- [Bug] NSFW Error
- [Bug] no file of configs/animatediff/animatediff.py HOT 2
- [Bug] RealBasic got killed when loading model
- [Docs] The link MMEditing in the README redirects back to the same mmagic page
- [Bug] cyclegan:UnboundLocalError: local variable 'init_info' referenced before assignment HOT 2
- No module named 'diffusers.pipelines.controlnet_xs' HOT 9
- [Feature] The code and documentation are really terrible[Docs] HOT 1
- [Bug] - ImportError: /opt/conda/envs/mmagic/lib/python3.9/site-packages/mmcv/_ext.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs
- [Docs] BasicVSR++ HOT 1
- torch.cuda.OutOfMemoryError: CUDA out of memory.real_basicvsr/basicvsr++运行报错 HOT 2
- [Bug] Can not use `ConcatImageVisualizer` in train step. / 在Train阶段可视化存在bug
- [Feature] Training and Testing Support for Stable Diffusion
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 mmagic.