jsup.GEN - working on image-to-image generation with AI

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/jsup-gen-working-on-image-to-image-generation-with-ai Hello, this is @joviansummer(witness: @jswit). I'd like to share what I'm working on regarding my experintal jsup.GEN project, which tries to connect image generation AI with Steemit. Currently, jsup.GEN provide function to generate image from test prompt(txt2img). This function is interesting, but it's not easy to generate exactly what you want because you need to explain the image in detail with multiple keywords in English. Thus, I think it's more useful to have a function to generate image from existing reference image. I'm working on this image-to-image function, and thinking about two methods to implement it. The first method is to provide 2 commands as follows: !gen_t : This command focuses more on text prompt than reference image. The result may be quite different from reference because text prompt will have much more in...

파이썬 beem에서 특정 포스트의 보팅 목록 확인

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/2764b6-beem


파이썬 beem에서 특정 포스트에 누가 얼만큼 보팅했는지 확인하는 방법입니다. 보팅 목록은 Comment 객체에서 "active_votes" 키(key)에 할당된 데이터를 조회하면 됩니다. 예시를 보자면 아래와 같습니다.

from beem import Steem
from beem.comment import Comment

node_list = ['https://api.steemit.com']

steem = Steem(node=node_list)

authorperm = 'joviansummer/b01bb'

comment = Comment(authorperm, blockchain_instance=steem)

for v_info in comment['active_votes']:
  print("voter:", v_info['voter'], ", rshares:", v_info['rshares'])

위의 예시에서 comment['active_votes']에는 보팅 목록이 리스트(list) 형식으로 할당되어 있으며, 각 원소는 딕셔너리(dict) 형식입니다. 원소의 "voter" 키에는 보팅한 계정이 할당되어 있고 "rshares" 키에는 보팅 분량이 할당되어 있습니다. 리스트 예시를 보자면 아래와 같습니다.

[{'voter': 'gerber', 'rshares': 53606309}, {'voter': 'ezzy', 'rshares': 37690507983},
...,
{'voter': 'princesslayla', 'rshares': 35831916}]

보팅한 계정의 스팀파워와 보팅 비중(vote weight)으로부터 rshares 값이 정해지고 이것이 나중에 보상을 계산하는 기반이 됩니다. 스팀잇 웹페이지에서는 보팅 보상이 미국 달러화로 환산된 값으로 표시되는데 이것은 정확한 값은 아니며 실제 보상은 rshares로 계산됩니다.


@joviansummer의 스팀 프로젝트

스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)

jswit 증인 노드 프로젝트를 시작합니다.

jsup 업보팅(upvoting) 서비스 소개

jsup 수혜자 지정 기능 추가

jsup 서비스에 큐레이션 보상 분배 기능이 추가되었습니다.

jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기

STEEM.NFT - 디지털 아트 보존 프로젝트

Posted through the AVLE Dapp (https://avle.io)

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기