-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style transfer algo gpu #6
Open
joaobrasil65
wants to merge
3
commits into
mkeid:master
Choose a base branch
from
joaobrasil65:Style-Transfer-Algo-GPU
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkeid
reviewed
Sep 23, 2021
|
||
if save: | ||
Image.fromarray(np.reshape(img, shape[1:])).save(out_path) | ||
Image.fromarray(np.reshape(img, shape[1:])).resize((1200, 1200)).save(out_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we resizing to 1200x1200? If this is arbitrary, can we make this configurable via flag arg?
Sure we can make it configurable. I just was making it specific to what I
was doing. I'm new to this Tensorflow stuff so I have been just trying to
figure out the code.
I want to use this with my NVIDIA gpu and also be able to set the quality
of the image - such as turning off compression among other things.
I like your results. Great job!
…On Thu, Sep 23, 2021 at 1:10 AM Mo ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/utilsV2.py
<#6 (comment)>
:
>
if save:
- Image.fromarray(np.reshape(img, shape[1:])).save(out_path)
+ Image.fromarray(np.reshape(img, shape[1:])).resize((1200, 1200)).save(out_path)
Why are we resizing to 1200x1200? If this is arbitrary, can we make this
configurable via flag arg?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZ3XKJP4L6QKCF5BT6PLELUDKZDFANCNFSM5ESO7KEA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Can you give me insight into what parameters/variables affect the outcome
of the model? Point me in the right direction if you have the time....
thanks
…On Thu, Sep 23, 2021 at 1:38 PM Joao Brasil ***@***.***> wrote:
Sure we can make it configurable. I just was making it specific to what I
was doing. I'm new to this Tensorflow stuff so I have been just trying to
figure out the code.
I want to use this with my NVIDIA gpu and also be able to set the quality
of the image - such as turning off compression among other things.
I like your results. Great job!
On Thu, Sep 23, 2021 at 1:10 AM Mo ***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In src/utilsV2.py
> <#6 (comment)>
> :
>
> >
> if save:
> - Image.fromarray(np.reshape(img, shape[1:])).save(out_path)
> + Image.fromarray(np.reshape(img, shape[1:])).resize((1200, 1200)).save(out_path)
>
> Why are we resizing to 1200x1200? If this is arbitrary, can we make this
> configurable via flag arg?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#6 (review)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACZ3XKJP4L6QKCF5BT6PLELUDKZDFANCNFSM5ESO7KEA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
I see the parameters but I was just wondering from your experience what
they do to the results?
Also, have you run this using tensorflow-gpu?
…On Thu, Sep 23, 2021 at 4:59 PM Joao Brasil ***@***.***> wrote:
Can you give me insight into what parameters/variables affect the outcome
of the model? Point me in the right direction if you have the time....
thanks
On Thu, Sep 23, 2021 at 1:38 PM Joao Brasil ***@***.***>
wrote:
> Sure we can make it configurable. I just was making it specific to what I
> was doing. I'm new to this Tensorflow stuff so I have been just trying to
> figure out the code.
>
> I want to use this with my NVIDIA gpu and also be able to set the quality
> of the image - such as turning off compression among other things.
>
> I like your results. Great job!
>
> On Thu, Sep 23, 2021 at 1:10 AM Mo ***@***.***> wrote:
>
>> ***@***.**** commented on this pull request.
>> ------------------------------
>>
>> In src/utilsV2.py
>> <#6 (comment)>
>> :
>>
>> >
>> if save:
>> - Image.fromarray(np.reshape(img, shape[1:])).save(out_path)
>> + Image.fromarray(np.reshape(img, shape[1:])).resize((1200, 1200)).save(out_path)
>>
>> Why are we resizing to 1200x1200? If this is arbitrary, can we make this
>> configurable via flag arg?
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#6 (review)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ACZ3XKJP4L6QKCF5BT6PLELUDKZDFANCNFSM5ESO7KEA>
>> .
>> Triage notifications on the go with GitHub Mobile for iOS
>> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
>> or Android
>> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>>
>>
>
|
I cannot get this to run with GPU support? Is there something in this
repository code that specifies CPU only?
…On Thu, Sep 23, 2021 at 5:23 PM Joao Brasil ***@***.***> wrote:
I see the parameters but I was just wondering from your experience what
they do to the results?
Also, have you run this using tensorflow-gpu?
On Thu, Sep 23, 2021 at 4:59 PM Joao Brasil ***@***.***>
wrote:
> Can you give me insight into what parameters/variables affect the outcome
> of the model? Point me in the right direction if you have the time....
>
> thanks
>
> On Thu, Sep 23, 2021 at 1:38 PM Joao Brasil ***@***.***>
> wrote:
>
>> Sure we can make it configurable. I just was making it specific to what
>> I was doing. I'm new to this Tensorflow stuff so I have been just trying to
>> figure out the code.
>>
>> I want to use this with my NVIDIA gpu and also be able to set the
>> quality of the image - such as turning off compression among other things.
>>
>> I like your results. Great job!
>>
>> On Thu, Sep 23, 2021 at 1:10 AM Mo ***@***.***> wrote:
>>
>>> ***@***.**** commented on this pull request.
>>> ------------------------------
>>>
>>> In src/utilsV2.py
>>> <#6 (comment)>
>>> :
>>>
>>> >
>>> if save:
>>> - Image.fromarray(np.reshape(img, shape[1:])).save(out_path)
>>> + Image.fromarray(np.reshape(img, shape[1:])).resize((1200, 1200)).save(out_path)
>>>
>>> Why are we resizing to 1200x1200? If this is arbitrary, can we make
>>> this configurable via flag arg?
>>>
>>> —
>>> You are receiving this because you authored the thread.
>>> Reply to this email directly, view it on GitHub
>>> <#6 (review)>,
>>> or unsubscribe
>>> <https://github.com/notifications/unsubscribe-auth/ACZ3XKJP4L6QKCF5BT6PLELUDKZDFANCNFSM5ESO7KEA>
>>> .
>>> Triage notifications on the go with GitHub Mobile for iOS
>>> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
>>> or Android
>>> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>>>
>>>
>>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
gpu tensorflow try