Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
automated_image_processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hyunseok_Sang
automated_image_processing
Commits
e2ae74bf
Commit
e2ae74bf
authored
2 years ago
by
Hyunseok_Sang
Browse files
Options
Downloads
Patches
Plain Diff
Dall-E Api를 이용해 이미지의 투명 픽셀을 채우는 Service
parent
e113f8ec
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
back-end2/src/services/outpainting_service.py
+12
-0
12 additions, 0 deletions
back-end2/src/services/outpainting_service.py
with
12 additions
and
0 deletions
back-end2/src/services/outpainting_service.py
0 → 100644
+
12
−
0
View file @
e2ae74bf
from
services.api.dallE_api
import
DallEAPI
from
utils.image.image_converter
import
ImageConverter
class
OutpaintingService
:
def
outpaint_using_dallE
(
self
,
image
,
length
):
"""
이미지의 투명픽셀을 채우는 메서드
"""
np_image
=
ImageConverter
().
convert_to_np_image
(
image
)
outpainted_np_image
=
DallEAPI
().
outpainting
(
np_image
,
length
)
return
outpainted_np_image
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment