Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
2Swon committed Feb 16, 2024
1 parent 70e87e3 commit e08a681
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 38 deletions.
9 changes: 4 additions & 5 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 31 additions & 31 deletions animation/char7/char_cfg.yaml
Original file line number Diff line number Diff line change
@@ -1,83 +1,83 @@
height: 400
skeleton:
- loc:
- 166
- 248
- 173
- 200
name: root
parent: null
- loc:
- 165
- 300
- 171
- 278
name: hip
parent: root
- loc:
- 165
- 206
- 176
- 204
name: torso
parent: hip
- loc:
- 165
- 123
- 166
- 125
name: neck
parent: torso
- loc:
- 122
- 134
- 119
- 149
name: right_shoulder
parent: torso
- loc:
- 112
- 163
- 95
- 183
name: right_elbow
parent: right_shoulder
- loc:
- 79
- 224
- 70
- 222
name: right_hand
parent: right_elbow
- loc:
- 220
- 136
- 214
- 120
name: left_shoulder
parent: torso
- loc:
- 247
- 159
- 245
- 156
name: left_elbow
parent: left_shoulder
- loc:
- 270
- 194
- 280
- 205
name: left_hand
parent: left_elbow
- loc:
- 125
- 295
- 129
- 294
name: right_hip
parent: root
- loc:
- 126
- 336
- 331
name: right_knee
parent: right_hip
- loc:
- 99
- 368
- 89
- 372
name: right_foot
parent: right_knee
- loc:
- 199
- 297
- 202
- 295
name: left_hip
parent: root
- loc:
- 196
- 341
- 200
- 327
name: left_knee
parent: left_hip
- loc:
- 210
- 380
- 214
- 376
name: left_foot
parent: left_knee
width: 400
Binary file modified animation/char7/mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified animation/char7/texture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion app/api/api_v1/endpoints/gree.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def upload_yaml(
def create_gif():
from animated_drawings import render
# 이 경로는 실제 YAML 파일의 위치에 따라 조정해야 합니다.
render.start('export_gif_example.yaml')
render.start('animation/export_gif_example.yaml')
return './temp/video.gif'


Expand Down Expand Up @@ -242,6 +242,7 @@ async def create_and_upload_assets(
# 파일 다운로드 및 저장 경로 설정
base_path = 'animation/char7'
os.makedirs(base_path, exist_ok=True) # 디렉토리가 없으면 생성
print('1')

# YAML 파일 다운로드 및 저장
yaml_file_path = os.path.join(base_path, 'char_cfg.yaml')
Expand Down
2 changes: 1 addition & 1 deletion app/crud/crud_gree.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def crud_get_grees(db: AsyncSession, user_id: int) -> List[GreeModel]:
query = select(GreeModel).filter(GreeModel.member_id == user_id, GreeModel.status == "activate")
result = await session.execute(query)
grees = result.scalars().all()
return grees
return greesx


async def crud_get_gree_by_id(db: AsyncSession, gree_id: int, user_id: int) -> GreeModel:
Expand Down

0 comments on commit e08a681

Please sign in to comment.