You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rename variables from single letter to better naming #198
Hey @daspartho ! Awesome, there are some single letter variables in attention.py file, feel free to work on those if you want. I'm listing the places that needs change below.
Hi @patil-suraj
Thank you for pointing out the necessary changes; I'll work on it.
I'm just not sure what the exact variable name for the single-letter variables should be. Can you please help me?
Thanks :)
Hey @i-am-epic@daspartho , there are still some places with single letter variables in resenet.py , feel free to work on those! I'm listing them down here.
Hi @patil-suraj,
Thank you for pointing out the changes; I'll work on it.
I'm not sure my naming analogy is perfect.
correct me with better naming convention,
x as parameter in forward function will be input_tensor and it returns output_tensor (and based on upsample, downsample or padding x can be upsample_input,downsample_input, padded_input).
Activity
patrickvonplaten commentedon Aug 17, 2022
Also maybe @anton-l if you'd like
patrickvonplaten commentedon Aug 19, 2022
That would be great @antival3nt 😍
Changed variable name from "h" to "hidden_states"
Changed variable name from "h" to "hidden_states" (#285)
rashmimarganiatgithub commentedon Sep 1, 2022
@patrickvonplaten , please assign to me.
patrickvonplaten commentedon Sep 2, 2022
Feel free to take it @rashmimarganiatgithub - all yours! Generally as soon as someone opens a PR for an issue, we try to work together on this PR
Changed variable name from "h" to "hidden_states" (#285)
daspartho commentedon Sep 8, 2022
Hi @patrickvonplaten
I'd be happy to work on any other variable names that need to be renamed.
patil-suraj commentedon Sep 9, 2022
Hey @daspartho ! Awesome, there are some single letter variables in
attention.pyfile, feel free to work on those if you want. I'm listing the places that needs change below.diffusers/src/diffusers/models/attention.py
Line 140 in b2b3b1a
diffusers/src/diffusers/models/attention.py
Line 195 in b2b3b1a
diffusers/src/diffusers/models/attention.py
Line 313 in b2b3b1a
diffusers/src/diffusers/models/attention.py
Line 331 in b2b3b1a
daspartho commentedon Sep 9, 2022
Hi @patil-suraj
Thank you for pointing out the necessary changes; I'll work on it.
I'm just not sure what the exact variable name for the single-letter variables should be. Can you please help me?
Thanks :)
rashmimarganiatgithub commentedon Sep 9, 2022
@daspartho ,q, k, v can be replaced with query,key,value. b, c, h, w can be replaced with batch,channel,height,weight .
daspartho commentedon Sep 9, 2022
Thank you for clarifying, @rashmimarganiatgithub. I'll start a PR soon.
daspartho commentedon Sep 9, 2022
I've opened a PR for the issue :) #449
daspartho commentedon Sep 11, 2022
Hi @patil-suraj
I'd be happy to work on any additional files that require changes.
i-am-epic commentedon Sep 27, 2022
Hi @patil-suraj , @patrickvonplaten
I would like to help with other files for better variable name changes.
patil-suraj commentedon Sep 29, 2022
Hey @i-am-epic @daspartho , there are still some places with single letter variables in
resenet.py, feel free to work on those! I'm listing them down here.https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py#L37
https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py#L54
https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py#L177
https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py#L239
https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py#L329
i-am-epic commentedon Sep 29, 2022
Hi @patil-suraj,
Thank you for pointing out the changes; I'll work on it.
I'm not sure my naming analogy is perfect.
correct me with better naming convention,
x as parameter in forward function will be input_tensor and it returns output_tensor (and based on upsample, downsample or padding x can be upsample_input,downsample_input, padded_input).
daspartho commentedon Sep 29, 2022
Opened a PR for the issue :) #676
I hope @i-am-epic doesn't mind me jumping in.
i-am-epic commentedon Sep 29, 2022
@daspartho no issues it would had been my first contribution.
daspartho commentedon Sep 29, 2022
Hi! @i-am-epic,
You could work on this one. Happy first contribution :)
diffusers/src/diffusers/models/resnet.py
Line 329 in f10576a
i-am-epic commentedon Sep 29, 2022
i-am-epic commentedon Sep 30, 2022
Opened new PR #677
Please do verify, thanks.
dgarnitz commentedon May 6, 2023
Is this still open? I see there is a merged PR above. I can jump on it if it is still open
SauravMaheshkar commentedon Jun 25, 2023
I raised #3868, fixing some of the last few remaining bits. Any ideas for appropriate names for the Temporal blocks viz. the variable name
t?Changed variable name from "h" to "hidden_states" (huggingface#285)