91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 36.96MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-16
  • 語言: 其他
  • 標簽: pytorch??FSRCNN??

資源簡介

學習筆記之——基于pytorch的FSRCNN 把我的代碼上傳了,后續有更正會更新這個代碼

資源截圖

代碼片段和文件信息

import?sys
import?time

TOTAL_BAR_LENGTH?=?80
LAST_T?=?time.time()
BEGIN_T?=?LAST_T


def?progress_bar(current?total?msg=None):
????global?LAST_T?BEGIN_T
????if?current?==?0:
????????BEGIN_T?=?time.time()??#?Reset?for?new?bar.

????current_len?=?int(TOTAL_BAR_LENGTH?*?(current?+?1)?/?total)
????rest_len?=?int(TOTAL_BAR_LENGTH?-?current_len)?-?1

????sys.stdout.write(‘?%d/%d‘?%?(current?+?1?total))
????sys.stdout.write(‘?[‘)
????for?i?in?range(current_len):
????????sys.stdout.write(‘=‘)
????sys.stdout.write(‘>‘)
????for?i?in?range(rest_len):
????????sys.stdout.write(‘.‘)
????sys.stdout.write(‘]‘)

????current_time?=?time.time()
????step_time?=?current_time?-?LAST_T
????LAST_T?=?current_time
????total_time?=?current_time?-?BEGIN_T

????time_used?=?‘??Step:?%s‘?%?format_time(step_time)
????time_used?+=?‘?|?Tot:?%s‘?%?format_time(total_time)
????if?msg:
????????time_used?+=?‘?|?‘?+?msg

????msg?=?time_used
????sys.stdout.write(msg)

????if?current?????????sys.stdout.write(‘\r‘)
????else:
????????sys.stdout.write(‘\n‘)
????sys.stdout.flush()


#?return?the?formatted?time
def?format_time(seconds):
????days?=?int(seconds?/?3600/24)
????seconds?=?seconds?-?days*3600*24
????hours?=?int(seconds?/?3600)
????seconds?=?seconds?-?hours*3600
????minutes?=?int(seconds?/?60)
????seconds?=?seconds?-?minutes*60
????seconds_final?=?int(seconds)
????seconds?=?seconds?-?seconds_final
????millis?=?int(seconds*1000)

????output?=?‘‘
????time_index?=?1
????if?days?>?0:
????????output?+=?str(days)?+?‘D‘
????????time_index?+=?1
????if?hours?>?0?and?time_index?<=?2:
????????output?+=?str(hours)?+?‘h‘
????????time_index?+=?1
????if?minutes?>?0?and?time_index?<=?2:
????????output?+=?str(minutes)?+?‘m‘
????????time_index?+=?1
????if?seconds_final?>?0?and?time_index?<=?2:
????????output?+=?str(seconds_final)?+?‘s‘
????????time_index?+=?1
????if?millis?>?0?and?time_index?<=?2:
????????output?+=?str(millis)?+?‘ms‘
????????time_index?+=?1
????if?output?==?‘‘:
????????output?=?‘0ms‘
????return?output

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-24?12:57??project\
?????目錄???????????0??2018-10-24?13:06??project\.idea\
?????文件???????????7??2018-10-24?13:04??project\.idea\.name
?????目錄???????????0??2018-10-24?12:54??project\.idea\inspectionProfiles\
?????文件????????1112??2018-10-24?12:54??project\.idea\inspectionProfiles\Project_Default.xml
?????文件?????????307??2018-10-23?22:26??project\.idea\misc.xml
?????文件?????????301??2018-10-24?13:06??project\.idea\modules.xml
?????文件?????????567??2018-10-22?23:37??project\.idea\project.iml
?????文件???????22058??2018-10-24?13:06??project\.idea\workspace.xml
?????目錄???????????0??2018-10-24?13:01??project\.vs\
?????文件??????????37??2018-10-24?13:01??project\.vs\ProjectSettings.json
?????文件??????????78??2018-10-24?13:01??project\.vs\VSWorkspaceState.json
?????目錄???????????0??2018-10-23?23:05??project\.vs\pyLearnTF\
?????目錄???????????0??2018-10-23?23:05??project\.vs\pyLearnTF\v15\
?????文件???????18944??2018-10-24?13:01??project\.vs\pyLearnTF\v15\.suo
?????文件??????208896??2018-10-24?13:01??project\.vs\slnx.sqlite
?????目錄???????????0??2018-10-24?13:00??project\FSRCNN\
?????目錄???????????0??2018-10-24?13:01??project\FSRCNN\__pycache__\
?????文件????????2016??2018-10-23?23:06??project\FSRCNN\__pycache__\model.cpython-36.pyc
?????文件????????4545??2018-10-24?13:01??project\FSRCNN\__pycache__\solver.cpython-36.pyc
?????文件????????3120??2018-10-23?22:26??project\FSRCNN\model.py
?????文件????????8454??2018-10-24?13:00??project\FSRCNN\solver.py
?????目錄???????????0??2018-10-24?12:59??project\__pycache__\
?????文件????????1508??2018-10-23?23:06??project\__pycache__\misc.cpython-36.pyc
?????文件????????1075??2018-10-24?12:59??project\__pycache__\visual_loss.cpython-36.pyc
?????目錄???????????0??2018-10-23?23:04??project\dataset\
?????目錄???????????0??2018-10-23?23:04??project\dataset\Test\
?????目錄???????????0??2018-10-23?23:04??project\dataset\Test\Set5\
?????文件??????786486??2018-10-23?19:59??project\dataset\Test\Set5\baby_GT.bmp
?????文件??????248886??2018-10-23?19:59??project\dataset\Test\Set5\bird_GT.bmp
?????文件??????196730??2018-10-23?19:59??project\dataset\Test\Set5\butterfly_GT.bmp
............此處省略542個文件信息

評論

共有 條評論