Coder Social home page Coder Social logo

测试 about rddm HOT 5 CLOSED

TonFard avatar TonFard commented on August 19, 2024
测试

from rddm.

Comments (5)

TonFard avatar TonFard commented on August 19, 2024

original_ddim_ddpm = False
num_unet = 2
objective = 'pred_res_noise'
test_res_or_noise = "res_noise"
if original_ddim_ddpm:
model = Unet(
dim=64,
dim_mults=(1, 2, 4, 8)
)
diffusion = GaussianDiffusion(
model,
image_size=image_size,
timesteps=1000, # number of steps
sampling_timesteps=sampling_timesteps_original_ddim_ddpm,
loss_type='l1', # L1 or L2
)
else:
model = UnetRes(
dim=64,
dim_mults=(1, 2, 4, 8),
num_unet=num_unet,
condition=condition,
input_condition=input_condition,
objective=objective,
test_res_or_noise=test_res_or_noise
)
diffusion = ResidualDiffusion(
model,
image_size=image_size,
timesteps=1000, # number of steps
# number of sampling timesteps (using ddim for faster inference [see citation for ddim paper])
sampling_timesteps=sampling_timesteps,
objective=objective,
loss_type='l2', # L1 or L2
condition=condition,
sum_scale=sum_scale,
input_condition=input_condition,
input_condition_mask=input_condition_mask,
test_res_or_noise=test_res_or_noise
)

这是我的配置

from rddm.

Z0Victor avatar Z0Victor commented on August 19, 2024

请问您是用多少张卡训练的

from rddm.

nachifur avatar nachifur commented on August 19, 2024

感谢大家关注RDDM。去噪可以参考一下另一个issue,https://github.com/nachifur/RDDM/issues/2。

单卡3090就可以跑论文里绝大多数的实验。

抱歉,这几天事情比较多,过段时间会更新代码。

from rddm.

TonFard avatar TonFard commented on August 19, 2024

8g显存的卡一个batchsize能跑起来

from rddm.

Z0Victor avatar Z0Victor commented on August 19, 2024

8g显存的卡一个batchsize能跑起来

好的,感谢您

from rddm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.